Re: How do I obtain the client's IP?

From: Date: Sat, 13 Oct 2001 19:55:27 +0000
Subject: Re: How do I obtain the client's IP?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9838@lists.php.net to get a copy of this message
> How can I obtain the client's IP address in PHP? I'm trying to migrate from > IIS/ASP to Apache & PHP and need something similar to ASP's servervariables' > collection? (HTTP_REMOTE_ADDR) Chris, PHP's environment variables offer a "REMOTE_ADDR" value and "HTTP_SERVER_VARS["REMOTE_ADDR"]". The best illustration of the PHP environment is offered by the <?php phpinfo() ?> 'test.php' routine. Regards, =dn

« previous php.windows (#9838) next »