Page 1 of 1
Any good free geoip scripts or db?
Posted: Sat Jun 03, 2006 8:55 am
by GeXus
I'm looking for a free geo ip script that can get city and state data... Anyone have any recommendations?
Thanks!
Posted: Sat Jun 03, 2006 9:28 am
by jfanaian
Never having tried this I have no solution that I know of. I did a bit of research though and came accross this PEAR class by MaxMind. You might want to take a look at it and see what it provides. It uses the MaxMind database to generate the geographical location of an IP address.
PEAR:
http://pear.php.net/pepr/pepr-proposal-show.php?id=91
MaxMind:
http://www.maxmind.com/app/php
If neither of these work, my other and simplest solution would be just to use one of the free query sites and just rip off the Geo data from there. Use of cURL can help this. When I have more time I'll be trying out the PEAR class and see how it works.
Hope this helps though
Good luck with your coding,
Jamal
P.S. Let me know how it works out as this is something I want to try out as well sometime

Posted: Wed Jun 14, 2006 11:58 am
by jfanaian
Posted: Wed Jun 14, 2006 12:15 pm
by timvw
I wrote something similar a coupe of years ago:
http://timvw.madoka.be/programming/php/banner.txt
http://timvw.madoka.be/programming/php/ip2location.txt
I used to have an online demo page... But threw that away..