One option to background the task is to use fork. However, I strongly
suggest using a proper job manager like gearman (see php extensions
also), or queue, like amqp or zmq, to handle these tasks more cleanly.
Which one is more suitable for your use case, I'll let you decide.
你问之前有没有?对于这类任务有很多解决方案和教程。在
你的问题基本上是这个问题的复制品PHP - Long Running Background Task。所以只要看看答案。在
相关问题 更多 >
编程相关推荐