PHP Classes
elePHPant
Icontem

Ip2Country: Detect the country and region of an IP address

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-04-08 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 699 All time: 4,364 This week: 1,298Up
Version License PHP version Categories  
ip-country 0.1.1GNU General Publi...5.3Networking, PHP 5, Web services, Geog...
Description Author  

This class can detect the country and region of an IP address.

It can detect the current user IP address and validate it to determine if it is from a public or private network.

The class can send a HTTP request to the IP2Country API to retrieve the country of the detected IP address.

Then it looks up internal arrays to determine if the country region is United States, Canada, Europe or Asia.

Picture of Anish Karim C
Name: Anish Karim C <contact>
Classes: 5 packages by
Country: India India
Age: 33
All time rank: 85345 in India India
Week rank: 474 Up35 in India India Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file index.php Example Example Script.
Plain text file ip2country.class.php Class ip2country class file
Accessible without login Plain text file README Data Readme file

 Version Control Unique User Downloads Download Rankings  
 0%Total:699All time:4,364
 This week:0This week:1,298Up
 User Comments (1)  
 
It misses Africa and South America
1 year ago (tuga cari)
22%StarStar