You are here: RE: [PHP] IP & Geographical « PHP « IT news, forums, messages
RE: [PHP] IP & Geographical

Posted by "Rob Agar" on 08/12/05 03:08

PEAR::Net_GeoIP is nice..

$geoip = Net_GeoIP::getInstance('/path/to/geoip.dat',
Net_GeoIP::MEMORY_CACHE);
$countryName = $geoip->lookupCountryName($ipAddress);

http://pear.php.net/package/Net_GeoIP

Rob


> -----Original Message-----
> From: John Taylor-Johnston [mailto:taylorjo@collegesherbrooke.qc.ca]
> Sent: Friday, 12 August 2005 1:38 AM
> To: php-general@lists.php.net
> Subject: [PHP] IP & Geographical
>
>
> I have a field in my counter that collects IP addresses. Now
> the powers
> that be want be to collect that data and sort it geographically etc.
> Is there anyone who has done this? Where would I find some OS
> code? I've
> heard of it done.
> John
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

 

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

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