IP To Country PHP Script by Mike Challis Free PHP Scripts - www.642weather.com/weather/scripts.php Download - www.642weather.com/weather/scripts/ip-to-country.zip Live Demo - www.642weather.com/weather/ip-to-country.php Contact Mike - www.642weather.com/weather/contact_us.php Version: 1.00 24-Nov-2008 - First release Version: 1.50 06-Dec-2008 - added 'include mode' option for using in your own site template (see readme.txt) - added advanced options and api for using remote lookup of ip data If you want to use ip-to-country information inside an application like a shopping cart or guest book. You can query the ip-to-country.php for a lookup remotely and include the results in your application. This method is flexible because it does not require direct mysql access to the ip-lookup database. If I was going to use ip-lookups in several applications, I would use this method rather than having each application connect to mysql (see advanced-uses folder inside zip file)