Home >Backend Development >PHP Tutorial >关于php执行后台任务解决方法

关于php执行后台任务解决方法

WBOY
WBOYOriginal
2016-06-13 10:18:411122browse

关于php执行后台任务
a.php通过http调用b.php,b.php的方法中使用php-cli方式开启一个进程,
现在的问题是,怎么让a.php不等待b.php的执行结果
我试了在b.php中命令中加入&(php -f c.php &)但是不起作用,请问各位还有什么别的办法?

------解决方案--------------------
此页注释里有人讨论过
http://www.php.net/manual/en/function.exec.php

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