Geography: GeoIP Country Whois Locator
Marius Zadara (contact me)
This class can determine the country of a given IP using the GeoIP country database edition.
It reads an GeoIP country database file that relates IP ranges with countries.
The class looks up a given IP to determine the country associated to the IP range that it belongs.
If found, the class returns the IP range start and end and the associated country name and code.
Click here for detailed information about this class on phpclasses.org
Example
Class use example