Login   Register  
PHP Classes
elePHPant
Icontem

Class: IP_to_country

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Valerio Giuffrida  >  IP_to_country  >  Download .tar.gz .zip  >  Support forum Support forum (4)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: IP_to_country
Base name: ip_to_country
Description: Determine the country of an IP address using Whois
Related classes: , , , , , , ,
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 1939 users
All time rank: 1715
Week users: 2 users
Week rank: 1677
Picture of Valerio Giuffrida
Author: Valerio Giuffrida <e-mail contact>
Packages: 2 Browse this author's classes Browse this author's classes
Country: Italy Italy - PHP jobs in Italy
Age: 24
All time rank: 73927 in Italy Italy
Week rank: 836 Down30 in Italy Italy Down


  Detailed description  
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.

 

  Groups  
Group folder image Networking Networking protocols, clients and servers View top rated classes
Group folder image Geography Locations, mapping and demographics View top rated classes

  Rate classes User ratings   Applications   Related links   Files Files  

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (66.7%)
Sufficient (70.8%)
-
Sufficient (62.5%)
-
-
Not sure (46.7%)
1680
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
flags.zip A compressed file where there are placed the countries's flags. Thanks a my friend for the hosting

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

Download all files: ip_to_country.tar.gz ip_to_country.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.