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);
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
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.
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:
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.
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
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
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/