Which detect location most accurate.
+2
A:
http://www.maxmind.com/ 's free API will get you to country level, and city for some IPs, if you pay them you can get some more detail, this information is a good default, but not 100% accurate. It's the best I've found.
Aquarion
2010-10-29 23:48:24
They have a free "GeoLite City" database as well.
deceze
2010-10-29 23:57:20
Hadn't notice that, have edited reply accordingly. Thanks :)
Aquarion
2010-10-30 00:13:03
A:
I've used IP2Location before and it works great. The free version will only return the country but the pay versions are very accurate and will return alot more information. They have API's for a lot of common languages.
thekaido
2010-10-30 00:16:40
A:
The Geo IP PECL package and Net_GeoIP PEAR package both provide an interface to the maxmind location database (that been mentioned in other answers) for PHP.
Tom Castle
2010-10-30 00:27:42