Login   Register  
PHP Classes
elePHPant
Icontem

Class: IP2More

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Bakr Alsharif  >  IP2More  >  Download .tar.gz .zip  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: IP2More
Base name: ip2more
Description: Lookup the IP address of a country with ip2country
Related classes: , , , , , ,
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 3478 users
All time rank: 786
Week users: 2 users
Week rank: 1677
Picture of Bakr Alsharif
Author: Bakr Alsharif <e-mail contact>
Packages: 4 Browse this author's classes Browse this author's classes
Country: Egypt Egypt - PHP jobs in Egypt
Age: 31
All time rank: 1261 in Egypt Egypt
Week rank: 98 Up2 in Egypt Egypt Down
Innovation award
Innovation award
Nominee: 2x


  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)

 

  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

  Freshmeat project   Rate classes User ratings   Applications   Related links   Files Files  

  Freshmeat project  
Project record: ip2more
Popularity score: 21.17
Vitality score: 1.01

  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.2%)
24
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 folder image 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.