Call another PHP script and return control to user before the other script completes

前端 未结 4 2062
情话喂你
情话喂你 2020-11-30 14:50

I\'m actually trying to apply this to a script that sends email. The sending email part takes a few seconds which is too long. What I want is for the first script to do its

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-30 14:59

    What you want to use is something called beanstalkd

    Details: How can I get a list of all jobs in a beanstalk tube?

    It will allow you to queue up jobs (do 1, then 2, then 3. then 4) you can even distribute these tasks across servers (yes for php jobs!).

提交回复
热议问题