note 117601 added to function.set-time-limit

From: Date: Mon, 06 Jul 2015 07:54:29 +0000
Subject: note 117601 added to function.set-time-limit
Groups: php.notes 
Request: Send a blank email to php-notes+get-203047@lists.php.net to get a copy of this message
set_tme_limit resets the execution time count. test code1: <?php echo '<html><body>'; set_time_limit(1); $i = 0; while(++$i < 100000001){ if($i % 100000 == 0){ echo $i / 100000, "<br/>\n"; } } echo "done.<br/>\n"; // will not echo 'done.'. ?> test code2: <?php echo '<html><body>'; set_time_limit(1); $i = 0; while(++$i < 100000001){ if($i % 100000 == 0){ set_time_limit(1); echo $i / 100000, "<br/>\n"; } } echo "done.<br/>\n"; // will echo 'done.' ?> ---- Server IP: 72.52.91.14 Probable Submitter: 153.230.15.42 ---- Manual Page -- http://php.net/manual/en/function.set-time-limit.php Edit -- https://master.php.net/note/edit/117601 Del: integrated -- https://master.php.net/note/delete/117601/integrated Del: useless -- https://master.php.net/note/delete/117601/useless Del: bad code -- https://master.php.net/note/delete/117601/bad+code Del: spam -- https://master.php.net/note/delete/117601/spam Del: non-english -- https://master.php.net/note/delete/117601/non-english Del: in docs -- https://master.php.net/note/delete/117601/in+docs Del: other reasons-- https://master.php.net/note/delete/117601 Reject -- https://master.php.net/note/reject/117601 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#203047) next »