![]() Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses. ![]() Use the IPv4 BIN file if you just need to query IPv4 addresses.You can also sign up for IP2Location Web Service to get one free API key. You are recommended to visit the above links to download the latest BIN database.įor the BIN database update, you can just rename the downloaded BIN database to IP2LOCATION-DB.BIN and replace the copy in app/Libraries/IP2Location/ (if you didn't change the default IP2LOCATION_DATABASE constant as described in the Usage section). IP2Location Commercial BIN Data (Comprehensive): Īn outdated BIN database was provided in this release for your testing.This module requires IP2Location BIN data file or IP2Location API key to function. The mysql table definition and example code given in the documentation does not work efficiently with mysql, because the mysql optimizer isnot good with 'between' queries for large tables. Print_r($ipl->cidrToIpv6('2002::1234:abcd:ffff:c0a8:101/64')) echo '' provides databases for geographical location of IP addresses. Secondly, translate the IP address to an IP number in decimal format to speed up the database query. Firstly, retrieve the IP address from the networking protocol or server-side variable of web server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |