I've got a long script (which I call from a cron job) which times out (it's set to 30 secs in the ini file).
So I want to change the time limit using the set_time_limit function but it doesn't seem to want to work. I'm not in safe mode (and I think PHP isn't running in CGI mode, but how can you check this?).
Playing around with this script I can't even get it to timeout at all! Am I missing the point somewhere?
<?php
// Infinite loop, should time out (testing if set_time_limit works on my system
set_time_limit(5);
$x = 1;
while ($x < 1000000000000000)
{
print("$x<br>");
$x++;
}
?>