News for hackers. Stuff that matters.
Re:PHP functions you (probably) never use by mootothemax on Thursday January 14, 2010 @04:42AM (#1052263)
To be honest, the only time I've seen glob() used was with an outsourced code bomb that was written to delete all the code if a get variable (think it was delete_everything) was passed, presumably in case we didn't pay up.

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...

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.
Re:PHP functions you (probably) never use by pvg on Thursday January 14, 2010 @05:58AM (#1052336)
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.