Re: Re: Capturing user's IP Address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 24 February 2005 9:38 am, N Deepak wrote:
> Jacques wrote:
> > Which function can I use to capture a user's IP Address when he registers
> > on my site. I would like to store this value in a database.
>
> print $_SERVER['REMOTE_ADDR'];
>
>  --Deepak

..But be careful! -If the user is going via a proxy to access your server 
that will be the IP address of the cache server, not the originating client.

- Nick

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux