通过PHP执行系统命令调用PHP执行程序,让进程挂起到后台执行,不影响用户页面交互。

控制器调用命令,不用等待,后台创建一个进程执行程序。

system(“nohup php command.php contorller/action/param/value $s > /dev/null &”);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2021-08-12
  • 2021-12-03
猜你喜欢
  • 2022-12-23
  • 2021-10-04
  • 2021-08-12
  • 2021-12-27
  • 2022-12-23
  • 2021-07-05
相关资源
相似解决方案