Re: Access Client IP address
| From: | Silvio Porcellana [tradeOver] | Date: | Wed, 04 Jan 2006 19:20:13 +0000 |
| Subject: | Re: Access Client IP address | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-228165@lists.php.net to get a copy of this message | ||
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?