Hi, Thanks to all of you who helped me out. I think this one is the best option for now, it even has an API for PHP 4 and another one for PHP 5. PHP 4: http://www.maxmind.com/download/geoip/api/php/ PHP 5: http://pear.php.net/package/Net_GeoIP/ Cheers, -William El mié, 21-03-2007 a las 14:53 +0200, Hidayet Dogan escribió: > There's a MaxMind's GeoLite City service for that. It's free. > > http://www.maxmind.com/app/geolitecity > > On Wed, 21 Mar 2007, Jim Moseby wrote: > > >> Hi people, > >> > >> Is there a way to detect the city of a person based on the IP > >> address? I > >> mean something like ip2nation http://www.ip2nation.com/ but for cities > >> so I can use it in my PHP web application. > >> > >> Thanks for any help you can give me, > >> > >> -William > >> > > > > > > I have one that 'sort of' works. It might be a start for you. I don't take > > credit for it, but I can't find in the source code any credits. I'll send > > it to you off list. > > > > JM > > > > -- > > 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