Login   Register  
PHP Classes
elePHPant
Icontem

Storeip: Store ip-addresses in a database

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Bas Jobsen
Name: Bas Jobsen <e-mail contact>
Packages: 9 Browse all classes by Bas Jobsen Browse all classes by
Country: The Netherlands The Netherlands - PHP jobs in The Netherlands
Age: 37
All time rank: 2296 in The Netherlands The Netherlands
Week rank: 543 Down19 in The Netherlands The Netherlands Down


  Detailed description   Download Download .zip .tar.gz  
To Store ip-addresses in a database, you will
need a field type of Char(15).
This class let's you store the ipnumbers as
an integer ( between -2139062144 and 2139062143)

This class has two functions
1) decode ip->number
2) encode number->ip

Both functions return false for empty or wrong ip-numbers

While using this class you will spare typical 11 bytes
for every ipnumber you store.
Char(15) needs 15 Bytes
SIGNED INT(10) needs 4 Bytes

  Classes of Bas Jobsen  >  Storeip  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Storeip
Base name: storeip
Description: Store ip-addresses in a database
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 1467 users
All time rank: 2422
Week users: 0 users
Week rank: 1748 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  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


  User ratings  
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.
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example
Accessible without login Plain text file license.txt Lic. license
Accessible without login Plain text file php_and_mysql.txt Doc. IMPORTANT
Plain text file storeip.php Class Storeip

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