PHP Curl async response

前端 未结 2 1716
终归单人心
终归单人心 2021-02-11 01:18

I have a PHP file that invokes another PHP file via curl. I am trying to have the second file send a response back to the first to let it know that it started. The problem is th

2条回答
  •  渐次进展
    2021-02-11 01:50

    This could be just what you're looking for. Forking in PHP:

    http://framework.zend.com/manual/en/zendx.console.process.unix.overview.html

    A process divides in two. One is father of the other. The father can tell the client he just begun and the child can do the job. When the child finishes, he's able to report the father which can also report to the client.

    Keep in mind there are many requirements for this to run:

    • Linux
    • CLI or CGI interface
    • shmop, pcntl and posix extensions (require recompiling)

提交回复
热议问题