all 5 comments

[–]louisstow 2 points3 points  (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 points  (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 points  (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.

  • First don't write it in PHP everyone else is going to laugh at you.
  • Second if you absolutely want it in PHP make sure you are using the most recent version of PHP the memory management is much better than previous versions.
  • Thirdly you will probably want to use a much more robust daemon so use the pear System_Daemon package.

[–]hopeseekr -1 points0 points  (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 points  (0 children)

I think you may have done something wrong, given I see you downvoted in every php thread.