Re: Getting IP address

From: Date: Wed, 19 Sep 2001 10:14:42 +0000
Subject: Re: Getting IP address
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-67810@lists.php.net to get a copy of this message
On Wednesday 19 September 2001 11:37, Andrew Semark wrote: $addr = getenv('REMOTE_ADDR'); > Can anybody tell me how to get the IP address of the remote machine looking > at the web page. I have two versions of PHP 4 On the box with version > 4.0.1 I can use $HTTP_SERVER_VARS["REMOTE_ADDR"], but on the other server > running 4.0.0 this don't work. Is there another way of doing this as it's > not possible to upgrade this server. > > Thank > > Andy

« previous php.general (#67810) next »