RE: [PHP] IP & Geographical

2005-08-11 Thread Rob Agar
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:[EMAIL PROTECTED] 
> 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
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IP & Geographical

2005-08-11 Thread Jarratt Ingram
Hello John 

http://www.ip-to-country.com/ provides a downloadable csv database
that should help you along your way.

HTH

On 8/11/05, John Taylor-Johnston <[EMAIL PROTECTED]> wrote:
> 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
> 
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IP & Geographical

2005-08-11 Thread Greg Donald
On 8/11/05, Greg Donald <[EMAIL PROTECTED]> wrote:
> http://sourceforge.net/projects/geoip/

Actually, here's a better URL:

http://freshmeat.net/projects/geoip/


-- 
Greg Donald
Zend Certified Engineer
MySQL Core Certification
http://destiney.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IP & Geographical

2005-08-11 Thread Duncan Hill
On Thursday 11 August 2005 16:37, John Taylor-Johnston typed:
> 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

maxmind.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IP & Geographical

2005-08-11 Thread Greg Donald
On 8/11/05, John Taylor-Johnston <[EMAIL PROTECTED]> wrote:
> 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.

http://sourceforge.net/projects/geoip/


-- 
Greg Donald
Zend Certified Engineer
MySQL Core Certification
http://destiney.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php