Page 1 of 1

Problem with max_execution_time

Posted: Sun Aug 06, 2006 2:58 am
by magosla2001
I have an apache server with PHP5 installed on a Windows Xp service pack2. I am having problem with loops that executes above 60sec. I changed max_execution_time in my php.ini file from 60 to off and i still encounter the same problem when I try to loop with while or for, the execution times out with an error that Maximun Execution Time of 60seconds exceeded.
What Can I do to solve this problem

Posted: Sun Aug 06, 2006 3:22 am
by volka
Check Configuration File (php.ini) Path in your phpinfo() output. Did you change the right file? And did you restart the webserver?
There's also set_time_limit which you can call in each loop iteration (except when in safe mode).

Posted: Sun Aug 06, 2006 4:06 am
by s.dot

Code: Select all

set_time_limit(0);  //unlimited
Also maybe you should post your code. We might be able to help you optimize it so it doesn't take so long. :)

Posted: Sun Aug 06, 2006 4:11 am
by magosla2001
I have set it to 0 in my php script and it worked fine