Login   Register  
PHP Classes
elePHPant
Icontem

AHostLookup: Get hostname, zip code and hit count for an IP.

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 (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-08-24 (9 years ago) RSS 2.0 feedStarStarStar 57%Total: 3,581 All time: 864 This week: 1,523Down
Version License Categories  
ahostlookup 1.0.0GNU General Public Lice...Networking, Databases, Web services, G...
Description Author  
This package is specific mainly for applications used in United States United States .

This class can be used to lookup the host name, ISP name and the United States ZIP code of the network of a given IP address.

It also returns the upper and lower IP addresses of the block of that the given IP belongs.

This class will keep a running count of the number of times a block of IPs were looked up and the date and time of last lookup of each block.

This class can lookup the IP address in a MySQL database, which is provided with this class, and if not found, it can lookup the IP from the ARIN Web site and then save the newly found information in the database.

Innovation Award  
PHP Programming Innovation award nominee
July 2005
Number 4


Prize: One downloadable copy of Komodo Pro
The ability to determine the location of the users may be very useful for sites that can use that information to provide services to their users depending on the region where they live.

There are several types of databases and online services that are able to determine the zip code of the network of a given ISP from the IP address of a user accessing from that network.

However, as the time passes, some IP address ranges are reassigned to different ISPs that are located in different places. The existing IP address range databases tend to get outdated.

This class provides a solution to build an upto date IP address range database.

When it does not know the location of a given IP address, it uses the whois service to retrieve the information of the corresponding ISP, the ISP location zip code and the assigned IP range.

The retrieved information is stored in a local MySQL database to avoid further whois lookup overhead.

Manuel Lemos
Picture of George Clarke
Name: George Clarke is available for providing paid consulting. Contact George Clarke .
Classes: 7 packages by
Country: United States United States
Age: 68
All time rank: 10911 in United States United States
Week rank: 77 Up4 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file ahostdisplay.php Appl. Displays blocks of IPs with count greater than 0. Used with ahostlookup.php
Accessible without login Plain text file ahostlookup.php Example Demo script for ahostlookup class.
Plain text file class.ahostlookup.php Class The class file for ahostlookup class.
Accessible without login Plain text file isps.sql Data database for ahostlookup class
Accessible without login Plain text file isps_alter.sql Data Upgrades existing isps table to the new version.

 Version Control Unique User Downloads Download Rankings  
 0%Total:3,581All time:864
 This week:0This week:1,523Down
 User Ratings  
 
 All time
Utility:87%StarStarStarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1093