Home >Backend Development >PHP Tutorial >高并发计数器扩展:php_ext_zqf

高并发计数器扩展:php_ext_zqf

WBOY
WBOYOriginal
2016-06-23 13:26:321326browse

php_ext_zqf 是 PHP 扩展,全局变量适用于高并发抢购、秒杀等。

使用方法如下:

首先安装php扩展zqf.so        phpize来安装        然后在php文件调用(声明只针对多线程)        dl('zqf.so');或者phpini里加载        $counter=zqf(0,1,0);        echo $counter;

项目主页:http://www.open-open.com/lib/view/home/1442242539040

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn