Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

fbGeoIP_Free_Binary Class Reference

List of all members.

Detailed Description

Geo IP Free binary file database class.

The only difference between this and fbGeoIP_Free is the format is '%c%c%c%c' and unpacking the result:

$a = unpack('C*', $found); $found = sprintf("%03d.%03d.%03d.%03d\t%03d.%03d.%03d.%03d\t%c%c", $a[1], $a[2], $a[3], $a[4], $a[5], $a[6], $a[7], $a[8], $a[9], $a[10]);

Todo:
make caching optional?

Definition at line 36 of file Binary.php.

Static Public Member Functions

 _formatIP4address ($ip, $format= '%c%c%c%c')
 getCountryIdByIP ($ip)
 getCountryIdByHostName ($name)
 getCountryNameByIP ($ip)
 getCountryNameByHostName ($name)


Member Function Documentation

fbGeoIP_Free_Binary::_formatIP4address ip,
format = '%c%c%c%c'
[static]
 

Definition at line 40 of file Binary.php.

References fbDebug::log().

Referenced by getCountryIdByIP().

fbGeoIP_Free_Binary::getCountryIdByHostName name  )  [static]
 

Definition at line 110 of file Binary.php.

References getCountryIdByIP().

Referenced by getCountryNameByHostName().

fbGeoIP_Free_Binary::getCountryIdByIP ip  )  [static]
 

Definition at line 59 of file Binary.php.

References _formatIP4address(), and fbDebug::log().

Referenced by getCountryIdByHostName(), and getCountryNameByIP().

fbGeoIP_Free_Binary::getCountryNameByHostName name  )  [static]
 

Definition at line 132 of file Binary.php.

References getCountryIdByHostName(), and getCountryName().

fbGeoIP_Free_Binary::getCountryNameByIP ip  )  [static]
 

Definition at line 121 of file Binary.php.

References getCountryIdByIP(), and getCountryName().


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 12:52:31 2004 for Freebeer by doxygen 1.3.6-20040222