[PHP] Server Communication.

2002-01-27 Thread Philip J. Newman

I'm trying to get the following ingotmation from my server.

The Actual ip# that the user has connected to the server with;
The Prioxy ip# that the user has connected to the server with;
The DNS name that the user has connected to the server with;

Is this possable with PHP?

Philip J. Newman
Philip's Domain - Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Phone: +64 25 6144012



Re: [PHP] Server Communication.

2002-01-27 Thread Jason Wong

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]