On Monday 28 January 2002 10:42, Philip J. Newman wrote:
I'm trying to get the following ingotmation from my server.
The Actual ip# that the user has connected to the server with;
$_SERVER['HTTP_X_FORWARDED_FOR']
The Prioxy ip# that the user has connected to the server with;
$_SERVER['REMOTE_ADDR']
*NB* if user didn't connect through proxy (or NAT) then
$_SERVER['HTTP_X_FORWARDED_FOR'] would be empty and Actual ip# would be
$_SERVER['REMOTE_ADDR']
The DNS name that the user has connected to the server with;
use gethostbyaddr()
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
/*
You mean you don't want to watch WRESTLING from ATLANTA?
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]