PHP Classes

File: iplocator/ip_blocks/README.md

Recommend this page to a friend!
  Classes of Andras Toth  >  PHP Fast IP Address Locator  >  iplocator/ip_blocks/README.md  >  Download  
File: iplocator/ip_blocks/README.md
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Fast IP Address Locator
Get the location of an IP using IPLocation files
Author: By
Last change: New Version First Release
Date: 1 year ago
Size: 1,211 bytes
 

Contents

Class file image Download
FastSpeedIpLocator ================== Fast ip parsing from local file Data file (update/IP2LOCATION-LITE-DB11.ZIP) is not exist!<br> Register to <a href = "http://www.ip2location.com//">www.ip2location.com</a><br> Download IP2LOCATION-LITE-DB11.ZIP file and copy to update folder.<br> AVG parsing time on my server: 15.6965 us.<br> Demo: <a href="http://atandrastoth.co.uk/main/pages/phpclasses/iplocator/">Live Demo</a><br> install: <pre> require_once('IpLocator.php'); $loc = IpLocator::getInstance(); //InstallBlocks(true for optimize best performance OR //rows per indexed file,true for delete temp files); $loc->InstallBlocks(true, true); unset($loc); </pre> usage: <pre> require_once('IpLocator.php'); $loc = IpLocator::getInstance(); $res = $loc->LocateIp($ip); echo 'ip => '.$res['ip']; echo 'country_code => '.$res['country_code']; echo 'country_name => '.$res['country_name']; echo 'region_name => '.$res['region_name']; echo 'city_name => '.$res['city_name']; echo 'latitude => '.$res['latitude']; echo 'longitude => '.$res['longitude']; echo 'zip_code => '.$res['zip_code']; echo 'time_zone => '.$res['time_zone']; </pre> Detailed description coming soon... Author: Tóth András