Say I have
Test.php =
<?
include('xxx.com/file.php');
?>
and in file.php, I want to grab the domain that test.php is located and not file.php.
the file.php would generate a image depending on the domain name where test.php is located, so how would I find the domain name of the test.php file..