开发者

Processing in the background? [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

php execute a background process

I need to get some info from the user, send them som开发者_Go百科e text back and process the data in the background, so after sending the text connectionwith browser should be closed and then the data processed.

How to achieve that?


You'll most likely want to save the information to a database and write some sort of daemon that processes the information offline. The PEAR System_Daemon would be a great starting point.

Some sections of their documentation you might be interested in:

  1. What is Daemon
  2. Daemons vs Cronjobs
  3. Installation
  4. Example


You may get use of pcntl_fork. See the manual example.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜