Login   Register  
PHP Classes
elePHPant
Icontem

Class: AHostLookup

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of George Clarke  >  AHostLookup  >  Download .tar.gz .zip  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: AHostLookup
Base name: ahostlookup
Description: Get hostname, zip code and hit count for an IP.
Related classes: , , , , , , ,
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 3282 users
All time rank: 861
Week users: 1 user
Week rank: 2434
Country specific: This package is specific mainly for applications used in United States United States .
Picture of George Clarke
Author: George Clarke is available for providing paid consulting. Contact George Clarke .
Packages: 7 Browse this author's classes Browse this author's classes
Country: United States United States - PHP jobs in United States
Age: 65
All time rank: 11712 in United States United States
Week rank: 204 Down22 in United States United States Down
Innovation award
Innovation award
Nominee: 1x


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

 

  Groups  
Group folder image Networking Networking protocols, clients and servers View top rated classes
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes
Group folder image Geography Locations, mapping and demographics View top rated classes

  Rate classes User ratings   Applications   Files Files  

  Innovation Award  
PHP Programming Innovation award nominee
July 2005
Number 4
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

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (87.5%)
Sufficient (66.7%)
-
Sufficient (66.7%)
-
-
Not sure (57.1%)
1006
Month:
Not yet rated by the users

  Applications that use this class  
Link Description
My Host Hits Host hits to gaclarke.com
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file ahostdisplay.php Appl. Displays blocks of IPs with count greater than 0. Used with ahostlookup.php
Plain text file ahostlookup.php Example Demo script for ahostlookup class.
Plain text file class.ahostlookup.php Class The class file for ahostlookup class.
Plain text file isps.sql Data database for ahostlookup class
Plain text file isps_alter.sql Data Upgrades existing isps table to the new version.

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