Timeout 30sec?

wordpress

#1

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!


#2

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…


#3

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


#4

Any php file you need it in.

<?php ini_set("max_execution_time", 60); //rest of code ?>

#5

i see. thank you! it worked perfectly.


#6

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