Login   Register  
PHP Classes

GET by IP: Get the country of a IP querying a whois server

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Kaurov Eugene
Name: Kaurov Eugene is available for providing paid consulting. Contact Kaurov Eugene .
Packages: 3 Browse all classes by Kaurov Eugene Browse all classes by
Country: Ukraine Ukraine - PHP jobs in Ukraine
Age: 29
All time rank: 2888 in Ukraine Ukraine
Week rank: 946 Down18 in Ukraine Ukraine Down
Innovation award
Innovation award
Nominee: 1x

  Detailed description   Download Download .zip .tar.gz  
This class can determine the country and other details associated to a given IP address by querying an WHOIS server.

Besides the country, if available, this class also retrieves these fields of the responsible institution for the range of IP addresses to which the given IP belongs: netname, person, address, phone and e-mail .

  Classes of Kaurov Eugene  >  GET by IP  >  Download Download .zip .tar.gz  >  Support forum Support forum (5)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: GET by IP
Base name: get_by_ip
Description: Get the country of a IP querying a whois server
Version: -
PHP version: -
License: BSD License
All time users: 4153 users
All time rank: 652
Week users: 1 user
Week rank: 1830 Down
  Groups   Rate classes User ratings   Trackback  
  Applications   Related links   Files Files  

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

  Innovation Award  
PHP Programming Innovation award nominee
February 2005
Number 5

Prize: One downloadable copy of Komodo Pro
Often it is useful to know the country of origin of an user. A common way to determine it is to retrieve the IP address of user network and query a database or a third-party remote service that is capable to lookup the country associated to the user IP address.

This class implements an alternative that consists only on querying public servers using the whois Internet protocol. Since whois servers are public, the access to these servers is free of charge. These servers also provide information that often is the most upto date.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Sufficient (78.8%) Sufficient (71.2%) - Sufficient (69.2%) - - Not sure (53.5%) 1352
Month: Not yet rated by the users

  Trackback links  
Link Description
Country Identifier This class may be able to help you:...

  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
Distar inc. Diamant tool plaint.

  Files folder image Files  
File Role Description
Plain text file get_by_ip.class.php Class main source file of class
Accessible without login Plain text file get_by_ip.example.php Example php+oracle example to use get_bi_ip class

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