当前位置:网站首页>Based on C PHP fast IP resolution extension, IP detection

Based on C PHP fast IP resolution extension, IP detection

2021-01-01 00:37:46 osc_ e7yhr5of

be based on C Of PHP Fast IP Parsing extensions

performance :

Xeon E5620@2.4G Under virtual machine

SinaIP          100000/ second 
QQWry PHP       3179/ second
GeoIP Record    40000/ second

install :

phpize
./configure
make
&& make install

Example :

$sinaip = sinaip_init(" Database files "); /*  Open database file  */
$count
= sinaip_count($sinaip);  /* Query database data volume */
for ($i=0;$i<10000;$i++)
{
  sinaip_search
($sinaip,mt_rand(100000000,3074228224));
}
$ip
= sinaip_search($sinaip,ip2long("IP Address ")); /* Inquire about IP find Returns an array of   I can't find return false */
sinaip_close
($sina_ip); /* Close the database Release resources */

QQ: 754774344 E-mail: magicbearmo@gmail.com

 

http://code.google.com/p/sinaip/

版权声明
本文为[osc_ e7yhr5of]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/20201231211435805S.html

随机推荐