View Full Version : Please Help IP address to country code

Jan 15th 2011, 12:52 AM
Has anyone got a piece of PHP code that converts an IP address to a country code? I had a snippet on my site that stopped working without warning, so I'm looking for something else.

I'll check Google along the way, just wondering if someone can make it easy for me.

Jan 15th 2011, 05:59 AM
You will find the databases here (IPV6 and IPV4 as well as country codes) - http://software77.net/geo-ip/ as well as software in several different languages here to make use of the database http://software77.net/geoip-software.htm

Jan 15th 2011, 09:29 AM
That looks pretty good... I'll take a closer look at it.


Jan 15th 2011, 11:15 PM
Almost forgot. There is also this - http://webnet77.com/geo-ip/index.html - a remotely hosted version.