Not sure what your getting at with 'only provied to businesses', but everything you need to get going is on this page: MaxMind - GeoIP PHP APIthnx numerouno...that's what I use now but I have geoip_city monthly updates. Will look into the API as you guys suggested.
Additionally, I think you guys are referring to the Maxmind webservice stuff. I am talking about the GeoIPCity.dat and GeoIPOrg.dat that are only provided to businesses.
Just need to access the data from those files![]()
Not sure what your getting at with 'only provied to businesses', but everything you need to get going is on this page: MaxMind - GeoIP PHP API
Are there any alternatives out there?
I used this when making a demo iPhone app over the summer for one of my classes: HTML5 Demo: geolocation
There's a few other alternatives. I like this one for PHP: geoPlugin's free and easy PHP geolocation webservice explained
You put that somewhere on your page:
<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>
Then where you want to show the city, you add this:
No Cost for <script language="JavaScript">document.write(geoip_city());</script> Residents
If you want more options with the API, I definitely suggest you have a good look to it but at least you now know how it works.
The only way I can think of of fixing that is by using lots of if then statements that match cities with smaller populations :/.I'd like to see one that references the largest city near to the IP, rather than each podunk town. People respond better to pages targeted near them, but it loses credibility when all these hot, single moms in Podunkville, Alabama are making money using them internets.