Timeout 30sec?

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!

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…

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

Any php file you need it in.

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

i see. thank you! it worked perfectly.


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