Login   Register  
PHP Classes
elePHPant
Icontem

IP_to_country: Determine the country of an IP address using Whois

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 (4)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-08-23 (8 years ago) RSS 2.0 feedStarStarStar 46%Total: 2,125 All time: 1,732 This week: 1,496Up
Version License Categories  
ip_to_country 1.0GNU General Public Lice...Networking, Geography
Description Author  

This class can be used to determine the country of an IP address using the Whois service.

It connects to an Whois server and queries the information associated to a given IP address.

If country information is available, the class returns an array with the country code, country name and the file name of the country flag.

Picture of Valerio Giuffrida
Name: Valerio Giuffrida <contact>
Classes: 2 packages by
Country: Italy Italy
Age: 26
All time rank: 75129 in Italy Italy
Week rank: 1605 Down70 in Italy Italy Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file countries.txt Data Collection of ISO codes and countries's name
Plain text file ip2country.class.php Class Class
Accessible without login Plain text file test.php Example Test script

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,125All time:1,732
 This week:0This week:1,496Up
User Ratings User Comments (1)  
 All time
Utility:66%StarStarStarStar
Consistency:70%StarStarStarStar
Documentation:-
Examples:62%StarStarStarStar
Tests:-
Videos:-
Overall:46%StarStarStar
Rank:1843
 
It's useful for me :)
4 years ago (Nguyen Duc Phu)
67%StarStarStarStar