Questions about $_SERVER

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux