You should not use PHP to write a daemon . What for? Because PHP is not a language mature enough to work for hours, days, weeks, or months. PHP is written in C, all the magic it provides must be handled. Garbage collection, depending on your version, may or may not work, depending on which extensions you compiled and used. Yes, if they come with official releases, they should βplay well,β but do you check which edition you use? Are you sure that all downloaded extensions understand that they can work for more than 10 - 30 seconds? Given that most deadlines never detect leaks, are you sure they even work?
I'm pretty close to " not using a regular expression to parse an HTML ad regarding this, as I see the question more and more, Twice today that I know of.
Would you use scrap as a toothpick? Neither Zend, nor Roadsend, nor PHC are mature enough to handle work for any period of time that could be considered protracted, given the expected lifetime of PHP when rendering a web page. Yes, even with the GC capabilities provided by the C ++ PHP compiler, it is unwise to write a daemon in PHP.
I hate the answers that you can't do that, with that , but in this case itβs true, at least for now.
Tim Post Nov 07 '10 at 18:14 2010-11-07 18:14
source share