Re: Server Communication.
| From: | Jason Wong | Date: | Mon, 28 Jan 2002 02:56:00 +0000 |
| Subject: | Re: Server Communication. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82351@lists.php.net to get a copy of this message | ||
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?
*/