PHP exec() as Background Process (Windows Wampserver Environment)

后端 未结 6 1065
-上瘾入骨i
-上瘾入骨i 2020-11-27 13:07

I\'m trying to setup a php trigger file that will set off a background process. (see this question)

I\'m doing this on a Windows Wampserver environment.

So f

6条回答
  •  天命终不由人
    2020-11-27 13:31

    You may need to change your implementation approach. Having to wait for such a long time would be an annoyance for the user of your app and fatal for the entire app.

    For such tasks, it's usually better to queue the task, ideally on database, and process them periodically. There are chron jobs on Linux based systems. In Windows, you can use a scheduler to launch the backgroundProcess.php.

提交回复
热议问题