First, I know basically zero php, I usually do jsp but I have to modify a footer for a wordpress site we have.
The site currently is hosted at www.mysite.com/wordpress and has the following line:
<?php readfile('http://www.mysite.com/css-imports.jsp'); ?>
and because I am doing this on development I keep having to change it to:
<?php readfile('http://local.mysite.com/css-imports.jsp'); ?>
When I do that the wordpress url is local.mysite.com/wordpress.
How can I from php insert local.mysite.com or www.mysite.com based on the domain that is serving the page?
Thanks.