My system is Redhat 7.0 linux default complete installed. I found the set_time_limit() and max_execution_time do not work.
My programme:
<?php
set_time_limit(5);
for ($i=1;$i<=10;$i++){
sleep(1);
echo $i,":";
}
?>
the result after run is:
1:2:3:4:5:6:7:8:9:10:
why? max_execution_time is set default 30,
if I change $i<=50; the result after run will echo 1:2:...:50: too!
It should stop at 5, but set_time_limit() did not wrok.