【问题标题】:php exec in background not working [duplicate]后台的php exec不起作用[重复]
【发布时间】:2011-05-03 09:43:56
【问题描述】:

可能重复:
Call another PHP script and return control to user before the other script completes

你好,

我在 php 中执行这个命令:

exec('php /path/to/script.php one_argument_passed &");

但它不是在后台执行它。我需要在 php 中进行设置或其他操作才能使其正常工作吗?

【问题讨论】:

标签: php exec


【解决方案1】:

也许你有权限问题。

【讨论】:

  • 这个答案是错误的; exec()shell_exec() 之间的唯一区别是程序输出的返回方式。
  • @IlmariKaronen:我改了。
猜你喜欢
  • 2013-01-02
  • 1970-01-01
  • 1970-01-01
  • 2015-10-20
  • 1970-01-01
  • 2023-03-27
  • 1970-01-01
  • 2014-03-21
  • 1970-01-01
相关资源
最近更新 更多