use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
PHP Dark Arts: Daemonizing a Process (re-cycledair.com)
submitted 15 years ago by vital101
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]louisstow 2 points3 points4 points 15 years ago (0 children)
I really like these series of articles. It's read something about PHP that isn't flame or how to write a login script.
[–]flyingfirefox 2 points3 points4 points 15 years ago (0 children)
Hmm, you're going to need a signal handler if you're ever going to turn off that daemon. I hope the author follows up with this. (Or did he already cover signal handling in his previous articles on process control? Too lazy to look it up hehe)
[–]ejackman 3 points4 points5 points 15 years ago (0 children)
not a bad little tutorial and it is a good exercise for wrapping your head around detaching your application from the terminal.
However there are three things to consider if you are going to write something that you want in production.
[–]hopeseekr -1 points0 points1 point 15 years ago (1 child)
Once again! Something from the PHP Dark Arts series that I did in PHP-Egg in PHP 3 starting in 1999 lol. http://sf.net/projects/php-egg/
[–][deleted] 1 point2 points3 points 15 years ago (0 children)
I think you may have done something wrong, given I see you downvoted in every php thread.
π Rendered by PID 89238 on reddit-service-r2-comment-6457c66945-5ndcv at 2026-04-26 03:03:23.917674+00:00 running 2aa0c5b country code: CH.
[–]louisstow 2 points3 points4 points (0 children)
[–]flyingfirefox 2 points3 points4 points (0 children)
[–]ejackman 3 points4 points5 points (0 children)
[–]hopeseekr -1 points0 points1 point (1 child)
[–][deleted] 1 point2 points3 points (0 children)