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.p
hp.net/note/edit/62447
Del: integrated -- ht
tp://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://m
aster.php.net/note/delete/62447/spam
Del: non-english -- h
ttp://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://ma
ster.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|