search
HomePHP Librariesip libraryA PHP class library for querying IP location
PHP query ip location class library

PHP query ip location class library

How to use it:

$ip=new iplocation("qqwry.dat");
$address=$ip->getaddress("123.57.138");
//$address=$ip->getaddress(www.111cn.net);
echo '<pre>';
print_r($address);

Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

Example of implementation ideas for querying IP location in PHPExample of implementation ideas for querying IP location in PHP

18Aug2017

A PHP code class for querying the IP location, the offset address of the first IP index, and the offset address of the last IP index. In order to be compatible with versions below PHP5, this class does not use a destructor, automatically closes the IP library, and passes the IP through ip2long Convert the Internet address to IPv4, and then compress it into big-endian byte order for comparison with the IP address in the index area.

http://www.google.com.hk/ A fast class library for generating static HTML using PHPhttp://www.google.com.hk/ A fast class library for generating static HTML using PHP

29Jul2016

http://www.google.com.hk/:http://www.google.com.hk/ A fast class library for generating static HTML using PHP: Copy the code as follows:

Introduction to the use of PHP QR Code, a class library for generating QR codes_PHP tutorialIntroduction to the use of PHP QR Code, a class library for generating QR codes_PHP tutorial

14Jul2016

Introduction to the use of PHP QR Code, a class library for generating QR codes in PHP. QR codes are used to record data information with specific geometric figures on a flat surface. QR codes are a common two-dimensional code. The QR principle is relatively complicated to understand. If you deal with it yourself, it will probably cost a lot of money.

PHP queries the region based on IP (Innocent IP library)_PHP tutorialPHP queries the region based on IP (Innocent IP library)_PHP tutorial

20Jul2016

PHP queries the region based on IP (Innocent IP library). Download innocent ip library? phpclass IpLocation { /** * @var resource pointer */ private $fp; /** * Offset address of the first IP record * @var int */ private $firstip; /** * Finally an IP record

Brief Analysis of Coral IP Library_PHP TutorialBrief Analysis of Coral IP Library_PHP Tutorial

21Jul2016

A brief analysis of the coral polyp IP library. This is nothing new, someone has done it a long time ago. It is to use PHP to operate the pure IP library or the coral IP library to get the physical location based on the visitor's IP. I

PHP does not need an IP library, get the city name to use! Use of php escape characters Use of the Guardian PHP suite Use of php source codePHP does not need an IP library, get the city name to use! Use of php escape characters Use of the Guardian PHP suite Use of php source code

29Jul2016

php, use: PHP does not require an IP library, get the city name to use!: In a recent secondary development, the current city needs to be developed to enter automatic selection, so I thought of a way to use PHP without an IP library, get the city name to use! Get User city information can also use the Innocence IP library, but the city entry function I am currently developing is like Meituan. It seems that the IP library cannot be used directly, so we can only steal other people's IP library information... External IP I temporarily provide two Sina interface addresses for obtaining library information, which are relatively stable: http://int.dpool.sina.com.cn/

See all articles