Re: Client IP

From: Date: Thu, 08 Jul 2004 07:55:32 +0000
Subject: Re: Client IP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-189946@lists.php.net to get a copy of this message
I use the following script: http://aidan.dotgeek.org/lib/?file=Visitor.php As you've been told about 400 times, there's no reliable way to get the information. The above script checks if the client connected using a proxy, then falls back to what the webserver sends. "Rosen" <rosen@pernikinfo.com> wrote in message news:20040707225524.46873.qmail@pb1.pair.com... > Hi, > How can I get remote IP adress of client? > I use the fillow script:: > > $ip=getenv('HTTP_X_FORWARDED_FOR'); > if (!$ip) > { > $ip = getenv('REMOTE_ADDR'); > } > > > But sometime it return me "unknown" sa IP adress. > > Can someone help me ? > > Thanks in advance!

« previous php.general (#189946) next »