4 ms·
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 delet
by mootothemax 17y ago
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...
- streety 17y agoAgreed on sys_getloadavg(), by the time you get to PHP much of the overhead of serving the connection has already been incurred.
- pvg 17y agoIt'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.
- middus 17y agoWas the contractor from Kerbleckistanian? ;) http://thedailywtf.com/Articles/Maybe-I-Needing-Later.aspx http://thedailywtf.com/Articles/Maybe-I-Needing-Later.aspx
- mootothemax 17y agoDear god, is this a common occurrence?