note 106669 added to function.set-time-limit

From: Date: Sat, 26 Nov 2011 03:39:37 +0000
Subject: note 106669 added to function.set-time-limit
Groups: php.notes 
Request: Send a blank email to php-notes+get-184685@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 75.60.71.102 ---- Manual Page -- http://www.php.net/manual/en/function.set-time-limit.php Edit -- https://master.php.net/note/edit/106669 Del: integrated -- https://master.php.net/note/delete/106669/integrated Del: useless -- https://master.php.net/note/delete/106669/useless Del: bad code -- https://master.php.net/note/delete/106669/bad+code Del: spam -- https://master.php.net/note/delete/106669/spam Del: non-english -- https://master.php.net/note/delete/106669/non-english Del: in docs -- https://master.php.net/note/delete/106669/in+docs Del: other reasons-- https://master.php.net/note/delete/106669 Reject -- https://master.php.net/note/reject/106669 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184685) next »