Databases: IP to Country database + Country list (and also separate versions) Price: $1 via PayPal Format: .sql Whats it for? - Make dynamic country dropdown menu with the latest country list - Locate the visitors country - Verify the users phone number extension - Store users information in the database more efficiently using ISO2 codes Why? Its the most recent info unlike you find on other sites. I made the country database manually, checking every country iso codes, exact name and call code. IP 2 Country is also most recent and works with the country database. Usage examples in php are included. Here are the db samples: | country_name | country_alpha2 | country_alpha3 | country_callcode | +------------------------+----------------+----------------+------------------+ | Afghanistan | AF | AFG | +93 | | Aland Islands | AX | ALA | +358 | | Albania | AL | ALB | +355 | Code (markup): +----------+----------+----------------+ | ip_start | ip_end | country_alpha2 | +----------+----------+----------------+ | 33996344 | 33996351 | GB | | 50331648 | 68257567 | US | | 68257568 | 68257599 | CA | Code (markup):
The functions for converting IP to number and vice versa are included in the example files. Simply include "ip_to_number.php" in your php script and call the ip2num($ip) or num2ip($number) functions as needed. The IPs are in the format above for faster database lookups. Finding an int is faster than finding a string, right?