note 62447 added to function.set-time-limit

From: Date: Tue, 28 Feb 2006 21:36:41 +0000
Subject: note 62447 added to function.set-time-limit
Groups: php.notes 
Request: Send a blank email to php-notes+get-104580@lists.php.net to get a copy of this message
Regarding what 'nytshadow' said, it's important to realize that max-execution-time and the set_time_limit functions measure the time that the CPU is working on the script. If the script blocks, IE: for input, select, sleep, etc., then the time between blocking and returning is NOT measured. This is the same when running scripts from the command line interface. So if you've got a log parser written in PHP that tails a file, that program WILL fail eventually. It just depends how long it takes to read in enough input to process for 30 seconds. If you're writing a command line script that should run infinitely, setting max-execution-time to 0 (never stop) is HIGHLY recommended. ---- Server IP: 216.194.113.175 Probable Submitter: 140.233.6.66 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.set-time-limit.php Edit -- http://master.php.net/note/edit/62447 Del: integrated -- http://master.php.net/note/delete/62447/integrated Del: useless -- http://master.php.net/note/delete/62447/useless Del: bad code -- http://master.php.net/note/delete/62447/bad+code Del: spam -- http://master.php.net/note/delete/62447/spam Del: non-english -- http://master.php.net/note/delete/62447/non-english Del: in docs -- http://master.php.net/note/delete/62447/in+docs Del: other reasons-- http://master.php.net/note/delete/62447 Reject -- http://master.php.net/note/reject/62447 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104580) next »