PHP Classes

IP2Location: Lookup the geographic location of an IP address

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 36%Total: 3,174 This week: 1All time: 1,128 This week: 560Up
Version License Categories
ip2location 1.0Freely DistributableNetworking, Geography
Description 

Author

This package can be used to lookup the geographic location of the network of an IP address using IP database files provided by the IP2Location service.

It provides functions can lookup the location of an IP address and return location record objects that contain the country, region, city, latitude, longitude, ISP and domain name from IP address.

The IP database files are available from IP2Location.com.

Picture of KL Liew
Name: KL Liew <contact>
Classes: 1 package by
Country: Malaysia Malaysia
Age: ???
All time rank: 10072 in Malaysia Malaysia
Week rank: 411 Up1 in Malaysia Malaysia Up

Details

IP2Location (PHP Module) ======================== This PHP module provides fast lookup of country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name and connection speed from IP address by using IP2Location database. This module uses a file based database available at IP2Location.com. This database simply contains IP blocks as keys, and other information such as country, region, city, latitude, longitude, ISP and domain name as values. 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 http://www.ip2location.com/developers.htm. 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. i) IP2Location.inc ii) sample-IP2Location.php iii) samples/IP-COUNTRY-SAMPLE.BIN To test this installation, please browse sample-IP2Location.php using web browser. DEPENDENCIES The complete database is available at http://www.ip2location.com under subscription package. COPYRIGHT AND LICENCE Copyright (C) 2005-2006 by IP2Location.com, support@ip2location.com

  Files folder image Files  
File Role Description
Accessible without login Plain text file IP2Location.inc Class IP2Location PHP API
Accessible without login Plain text file sample-IP2Location.php Example Sample PHP Code
Accessible without login Plain text file ChangeLog Data Changes Log
Accessible without login Plain text file README Doc. Read Me Documentation

 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,174
This week:1
All time:1,128
This week:560Up
User Ratings User Comments (1)
 All time
Utility:47%StarStarStar
Consistency:50%StarStarStar
Documentation:43%StarStarStar
Examples:32%StarStar
Tests:-
Videos:-
Overall:36%StarStar
Rank:4022