function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
zachzach 

Which directive to set for maximum server timeout?

I've gone through my php.ini and apache.conf files and set all of the timeouts (on my local machine) to be way more than 30 seconds, but I'm still getting the "PHP Fatal error:  Maximum execution time of 30 seconds exceeded" error when I run process-intensive scripts.  Can anyone tell me which directive I need to set to increase this timeout?
Tran ManTran Man
What does phpinfo() display for max_execution_time ?
zachzach
30... Sweet, thanks.  I was looking for 'timeout' & changing those values.
Tran ManTran Man
You can also programmatically override it:

<?php
echo date("H:m:s"), "\n";
set_time_limit(45);
for ($i = 0; $i < 100; $i++)
{
   sleep(10);
   echo date("H:m:s"),"\n";
}
echo "Done!";
?>