The fact that 59 seconds worked suggested the ini settings was in effect, otherwise it would have timed out after 30 seconds (default ini setting). But I also tested your suggestion: <?php $t=70; ini_set("max_execution_time","600"); echo "<h2>Test timeout - sleep for $t seconds</h2>"; echo "max execution time set to ".ini_get("max_execution_time")."<br />"; echo "sleeping ".date('h:i:s')."<br />"; sleep($t); echo "stop sleeping ".date('h:i:s'); ?> ?> Same result, $t=59 works but $t=70 times out Cheers Arno -----Original Message----- From: Ólafur Waage [mailto:olafurw@xxxxxxxxx] Sent: 04 June 2008 11:19 To: php-general@xxxxxxxxxxxxx Subject: Re: Problem with script timing out in php 4.4.8 Could you try setting the max_execution_time with ini_set and confirming the status of it with ini_get ? - Waage 2008/6/4 Arno Kuhl <akuhl@xxxxxxxxxxxx>: > I recently picked up an issue when I upgraded my IDE, where the > browser window timed out while I was debugging the code. I checked > with support and was told the problem was with php 4.4.8 which they'd > upgraded to, so to confirm I installed 4.4.8 and ran a test - and it > seems there is a problem with 4.4.8. > > The test was: > > change max_execution_time from 30 to 600 in php.ini - phpinfo confirms > max_execution_time=600 > > <?php > $t=70; > echo "<h2>Test timeout - sleep for $t seconds</h2>"; echo "sleeping > ".date('h:i:s')."<br />"; sleep($t); echo "stop sleeping > ".date('h:i:s'); ?> > > $t=59 works fine, but $t=70 times out. > > (Windows 2000, Apache Release 10324100) > > I ran the same test successfully with $t=500 seconds on a different > machine running php 4.3.4, everything else the same as the original test pc. > > What bothers me a bit is 4.4.8 has been available since February and > checking the archives I see no-one else has reported this problem, > which seems highly unlikely, so I'm wondering if this is specific only > to my environment somehow. Has anyone else had problems with > max_execution_time in 4.4.8? > > Cheers > Arno > > > -- > PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: > http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php