Posted on 3/2/09 by Felix Geisendörfer
If you already have, you might have run into the scenario where you want the script to restart itself. For example you might have changed the code of the script after it started running, and you want to replace the current process with one running the new code.
After a bit of trial and error, I present my glorious hack:
Feel free to share your own war stories and suggestions regarding PHP scripts acting as daemons : ).
-- Felix Geisendörfer aka the_undefined
You can skip to the end and add a comment.
This post is too old. We do not allow comments here anymore in order to fight spam. If you have real feedback or questions for the post, please contact us.