Index of /ip2location/

      Name                                          Last modified         Size  Description 
up Parent Directory 30-Dec-2016 14:44 - directory databases 30-Dec-2016 14:48 - unknown CHANGELOG 30-Dec-2016 14:44 4k [HTM] IP2Location.php 30-Dec-2016 14:44 32k [HTM] example.php 30-Dec-2016 14:44 4k

IP2Location (PHP Module)

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 

This module can be used in many types of projects such as:

 1) select the geographically closest mirror
 2) analyze your web server logs to determine the countries of your visitors
 3) credit card fraud detection
 4) software export controls
 5) display native language and currency 
 6) prevent password sharing and abuse of service 
 7) 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

The complete database is available at under Premium subscription package. This module also support IP2Location IPv6 version.

To install this module, unzip the package and copy the following files to your web folder.
 i)   IP2Location.php
 ii)  example.php
 iii) databases/IP-COUNTRY-SAMPLE.BIN
 iv)  databases/IPV6-COUNTRY-SAMPLE.BIN
To test this installation, please browse example.php using web browser.

This module require php_gmp extension. Please find the below procedures to enable the module.

For Windows environment:
Uncomment the extension in php.ini by removing the semi-colon

For Linux/Mac envionment:
install the php5-gmp package

The complete database is available at under subscription package.

Copyright (C) 2005-2014 by,
Proudly Served by LiteSpeed Web Server at Port 80