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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:34:50
Original
1159 people have browsed it

关于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

Related labels:
source:php.cn
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template