PHP Classes
Icontem

Class: IP2More


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Bakr Alsharif  >  IP2More  >  Download  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: IP2More Support forum
Base name: ip2more
Description: Lookup the IP address of a country with ip2country
Related top rated classes: ,
Version: -
Required PHP version: -
License: GNU General Public License (GPL)
All time users: 2821 users
All time rank: 830
Week users: 7 users
Week rank: 1084
 
  Author   Group folder image Groups   Detailed description   Freshmeat project  
  Rate classes User ratings   Applications   Related links   Files Files  

Author

Picture of Bakr Alsharif
Name: Bakr Alsharif <e-mail contact>
Published packages: 4 Browse this author's classes Browse this author's classes
Country: Egypt Egypt - PHP jobs in Egypt
Home page: http://systurn.com/
Age: 29
All time rank: 153
Week rank: 133

Groups

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

Detailed description

This class can lookup related information of the country of the network of a given IP address.

It does not need an SQL database server as it uses the ip2country flat file databases to lookup the the IP country and other details like the country ISO 2 and 3 letter codes, FIPS104 code, ISO number, region, capital, currency name and code and flags.

The class can also generate select inputs for choosing a country in Web forms. The select input default country can optionally be set to the country of a the user's IP address.

New In v3.0:
- If the IP address was not found in the local database, Its info will be fetched from Whois server.
- A new function added "find_country": This function was suggested by 'Nizam', It will find a country by providing any info about it (name, iso2, iso3, fips104 OR even the Capital)
- The fips104 field in countries list, was updated. thanks to 'Nizam'
- A new function added "is_valid_ip": it will check the validity of the passed IP address


Note:
You can change the WHOIS service to any other one you might know.
But if you did so, don't forget to change the $whois_regex and $whois_return.
(Till I finish documentations you will find detailed comments in i2m.class.php)

Freshmeat project

Project record: ip2more
Popularity score: 25.77
Vitality score: 1.02

User ratings

Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Perfect (100.0%)
Good (90.0%)
Good (90.0%)
Good (92.5%)
-
-
Sufficient (77.3%)
20
Month:
Not yet rated by the users

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
Online Example an online example for V3
Required Files For V3 The flat database and flags (V3)
Documentation online documentation (V2 only)

Files

File Role Description
Plain text file demo.php Example Example
Plain text file i2m.class.php Class ip2more base class
Plain text file license.txt Lic. License
Plain text file readme.txt Doc. READ ME
Download all files: ip2more.tar.gz ip2more.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products