PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2005-02-06 (11 years ago) RSS 2.0 feedStarStarStar 53%Total: 4,182 This week: 1All time: 695 This week: 1,047Down
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 <contact>
Classes: 3 packages by
Country: Ukraine Ukraine
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,182
This week:1
All time:695
This week:1,047Down
User Ratings User Comments (3)
 All time
Utility:78%StarStarStarStar
Consistency:71%StarStarStarStar
Documentation:-
Examples:69%StarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:1772
 
No documents, no samples, None! a lot of errors.
5 years ago (Mohammad reza Shojaie)
0%Star
eregi() deprecated buffer undefined variable msg undefined va...
6 years ago (Martí Poch)
47%StarStarStar
Excellent
7 years ago (kishore kumar)
70%StarStarStarStar