Questions about $_SERVER
| From: | tedd | Date: | Sat, 28 Aug 2010 19:18:25 +0000 |
| Subject: | Questions about $_SERVER | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-307725@lists.php.net to get a copy of this message | ||
Hi gang:
The server global:
$_SERVER['SERVER_ADDR']
Provides the IP of the server where the current script is executing.
And, the server global:
$_SERVER['REMOTE_ADDR']
Provides the IP of the server executing the script.
As such, you can enter the IP of either into a browser and see that specific domain.
However, that doesn't work when you are dealing with shared hosting. Doing that will show you to the parent domain, but not the child domain (i.e., alias).
So, how can I identify the exact location of the 'server_addr' and of the 'remote_addr' on shared hosting? Is that possible?
Thanks,
Cheers,
tedd
--
-------
http://sperling.com/