更新时间:2023-09-28 23:18:40
我使用 exec()
.它简单而干净.您基本上需要构建一个线程管理器和线程脚本,这将满足您的需求.
i use exec()
. Its easy and clean. You basically need to build a thread manager, and thread scripts, that will do what you need.
我不喜欢 fsockopen()
因为它会打开一个服务器连接,这会建立起来并可能达到 apache 的连接限制
I dont like fsockopen()
because it will open a server connection, that will build up and may hit the apache's connection limit
出于同样的原因,我不喜欢 curl
函数
I dont like curl
functions for the same reason
我不喜欢 pnctl
因为它需要可用的 pnctl 扩展,而且你必须跟踪父/子关系.
I dont like pnctl
because it needs the pnctl extension available, and you have to keep track of parent/child relations.
从来没有玩过齿轮...
never played with gearman...