This is the official release maintained by IP2Location.com
This PHP module provides fast lookup of country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection speed, IDD code, area code, weather station code, weather station name, MNC, MCC, mobile brand, elevation, and usage type from IP address by using IP2Location database. This module uses a file based database available at IP2Location.com.
This module can be used in many types of projects such as:
- select the geographically closest mirror
- analyze your web server logs to determine the countries of your visitors
- credit card fraud detection
- software export controls
- display native language and currency
- prevent password sharing and abuse of service
- geotargeting in advertisement
The database will be updated in monthly basis for the greater accuracy. Free sample database is available at /samples directory or download it from http://www.ip2location.com/developers.
The complete database is available at http://www.ip2location.com under Premium subscription package. This module also support IP2Location IPv6 version.
INSTALLATION
To install this module, unzip the package and copy the following files to your web folder.
- IP2Location.php
- example.php
- databases/IP-COUNTRY-SAMPLE.BIN
- databases/IPV6-COUNTRY-SAMPLE.BIN
To test this installation, please browse example.php using web browser.
DEPENDENCIES
The complete database is available at http://www.ip2location.com under subscription package.
COPYRIGHT AND LICENCE
Copyright (C) 2005-2015 by IP2Location.com, support@ip2location.com