Hi i'm trying to stop long running php scripts
so i've created this scrtipt for testing
<?php
ini_set('max_execution_time',1);
set_time_limit(1);
for($i=0;$i<2;$i++) {
echo time();
echo ' i:' . $i;
echo '<br/>';
sleep(2);
}
phpinfo();
the php info outputs
Directive Local Value Master Value
max_execution_time 1 30
but the script is not aborted after 1 sec. Why?