Processing in the background? [duplicate]
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:
- What is Daemon
- Daemons vs Cronjobs
- Installation
- Example
You may get use of pcntl_fork
. See the manual example.
精彩评论