You are here: Re: [PHP] Access Client IP address « PHP « IT news, forums, messages
Re: [PHP] Access Client IP address

Posted by "Silvio Porcellana [tradeOver]" on 09/26/13 11:36

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?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация