Voting

: one plus three?
(Example: nine)

The Note You're Voting On

ratty at brohoof dot com
12 years ago
One thing that I wish I had found sooner is, if you're using php-cli and really need to limit the executation time, and if you're in *nix, you can use "timeout" which is part of coreutils.
For example:

timeout 5 /usr/bin/php -q /path/to/script

and it will kill it if it takes longer than 5 seconds.
I had a few quick php scripts I wrote for use with cacti for example.

<< Back to user notes page

To Top