PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (5)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 49%Total: 4,195 All time: 716 This week: 159Up
Version License Categories
get_by_ip 1.0BSD LicenseNetworking, Geography
Description Author

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 .

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
Picture of Kaurov Eugene
Name: Kaurov Eugene is available for providing paid consulting. Contact Kaurov Eugene .
Classes: 3 packages by
Country: Ukraine Ukraine
Age: 37
All time rank: 3129 in Ukraine Ukraine
Week rank: 577 Down14 in Ukraine Ukraine Down
Innovation award
Innovation award
Nominee: 1x

  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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:4,195
This week:0
All time:716
This week:159Up
User Ratings User Comments (3)
 All time
Utility:73%StarStarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:64%StarStarStarStar
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:2416
 
No documents, no samples, None! a lot of errors.
11 years ago (Mohammad reza Shojaie)
0%Star
eregi() deprecated buffer undefined variable msg undefined va...
11 years ago (Mart Poch)
47%StarStarStar
Excellent
12 years ago (kishore kumar)
70%StarStarStarStar
 
For more information send a message to info at phpclasses dot org.