Can a PHP script start another PHP script and exit?

前端 未结 6 1898
长发绾君心
长发绾君心 2021-02-04 17:02

How can a PHP script start another PHP script, and then exit, leaving the other script running?

Also, is there any way for the 2nd script to inform the PHP script when i

6条回答
  •  既然无缘
    2021-02-04 17:51

    Here's how to do it. You tell the browser to read in the first N characters of output and then close the connection, while your script keeps running until it's done.

    
    

提交回复
热议问题