PHP background process in safe mode

后端 未结 1 508
感动是毒
感动是毒 2021-01-29 03:48

In my php project i should have some background process , but in safe mode , because I\'m running it on a shared host.

For example my background process code is in the f

相关标签:
1条回答
  • It's not possible use a PHP file served by a HTTP Server because all proceses will die after the request end.

    So cPanel cron is a good option, you don't need to have the cron entry always enable, just setup once the entry and disable it after the script start to run.

    Only you'll need add & at the end of your cron command to make it run as background.

    0 讨论(0)
提交回复
热议问题