Archive for June, 2010

IP to country converter – using MaxMind GeoIP API

We’ve covered the HostIP.info API for converting the IP address to a country and city of your visitor. But you may have noticed sometime HostIP.info does not convert everything and might have comparatively lower accuracy. But if you want better accuracy, HostIP.info also recommends you to get a commercial version such as MaxMind

Continue reading ‘IP to country converter – using MaxMind GeoIP API’

How to get the country of an IP address in PHP?

The HostIP.info provides API allows you to get the country including the city as well. The simple PHP script that can get the country is as follow:

Continue reading ‘How to get the country of an IP address in PHP?’