You are here: Re: IP address question « PHP Programming Language « IT news, forums, messages
Re: IP address question

Posted by Janwillem Borleffs on 06/19/06 20:12

Marcus wrote:
> I know I can get a client's IP address with $_SERVER['REMOTE_ADDR'],
> but I was wondering if I could use PHP to get any additional
> information, such as the client's geographic location (zip code would
> be preferable), or even just the zip of the ISP.

To get the ISP's/domain registrar's address, you need to use "whois"; search
for "php whois" to get some ready to use scripts.

There are also database solutions, like GeoIP, which provide you with the
country (and sometimes additional geographical data) the IP originates from.


JW

 

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

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