I have my site on the server http://www.myserver.uk.com.
http://www.myserver.uk.com
On this server I have two domains:
one.com and two.com
I would l
Try $_SERVER['SERVER_NAME'].
$_SERVER['SERVER_NAME']
Tips: Create a PHP file that calls the function phpinfo() and see the "PHP Variables" section. There are a bunch of useful variables we never think of there.
phpinfo()