Re: Access Client IP address

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

 



Nilanjan Dasgupta wrote:
> Hi,
>     Is there any way to client's IP address inside a php document. I am
> trying to generate a code that depends on the IP address of the client.
> 
> thanks a lot,
> Nilanjan
> 

Give a look at $_SERVER, and more specifically $_SERVER["REMOTE_ADDR"]
http://php.net/manual/en/reserved.variables.php#reserved.variables.server

HTH, cheers.
Silvio

-- 
tradeOver | http://www.tradeover.net
...ready to become the King of the World?

-- 
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