Timeout 30sec?

Timeout 30sec?

Posted by: iraszl
Posted on: 2005-06-26 23:52:00

For a certain php script that requires a lot of processing I always get a timeout error:
"Fatal error: Maximum execution time of 30 seconds exceeded in ..."

What can I do about it? Thx!

Re: Timeout 30sec?

Posted by: decswxaqz
Posted on: 2005-06-27 00:35:00

You could try
ini_set("max_execution_time", 60);

Maybe your code has an extra loop somewhere you don't need? I know some script I've used have sometimes been careless mistakes or bad programming ^_^;
I don't know if DH would like you running scripts longer than they should because they eat resources for everyone else...

Re: Timeout 30sec?

Posted by: iraszl
Posted on: 2005-06-27 00:45:00

in which file do i find this ini_set command? php.ini?

Re: Timeout 30sec?

Posted by: decswxaqz
Posted on: 2005-06-27 03:09:00

Any php file you need it in.
<?php
ini_set("max_execution_time", 60);
//rest of code
?>

Re: Timeout 30sec?

Posted by: iraszl
Posted on: 2005-06-27 05:30:00

i see. thank you! it worked perfectly.
Edited by iraszl on 06/27/05 05:48 AM (server time).

Re: Timeout 30sec?

Posted by: jauhari
Posted on: 2007-04-24 14:41:00

Hi,

I was try to change the value to 60 on my WordPress, and the error change become like this.

++++
Fatal error: Maximum execution time of 60 seconds exceeded in /home/.crumb/jauhari/jauhari.net/engine/wp-includes/post.php on line 1057
++++

So what's wrong?

Please Help me to fix it

http://www.jauhari.net

Tags: timeout errorphp scriptthxexecutionmaximumlot