Re:PHP functions you (probably) never use
by middus on Thursday January 14, 2010 @07:21AM
(#1052421)
Was the contractor from Kerbleckistanian? ;)
http://thedailywtf.com/Articles/Maybe-I-Needing-Later.aspx
Re:PHP functions you (probably) never use
by mootothemax on Thursday January 14, 2010 @08:42AM
(#1052545)
Dear god, is this a common occurrence?
Re:PHP functions you (probably) never use
by streety on Thursday January 14, 2010 @05:43AM
(#1052321)
Agreed on sys_getloadavg(), by the time you get to PHP much of the overhead of serving the connection has already been incurred.
It's also a poor way to decide whether to stop serving pages. Depending on circumstances, it's possible for request handling to be still reasonable or completely wedged for same load numbers. The number is also dependent on the configuration of the machine so moving to a box with, say, more cores might make whatever magic constant threshold you put in your code even wronger.
We paid, and surprisingly didn't choose to ask for any more work from that particular coder ;)
I like the example of sys_getloadavg(), but am unsure if I'd ever use it...