Jump to content


This topic is now archived and is closed to further replies.


Big Script Times out

Recommended Posts

Hello, I have a very complicated script that has many computations involved. I just want to run it once on my server, but it never makes it all the way through. I am not sure why but it keeps timing out, does anyone know what the problem is?

Share this post

Link to post
Share on other sites
It could be many different things, one being it takes longer than the set time limit for any script execution. You can control that by setting the time limit to (0)! But that will not help if your script has errors or maybe is stuck in a never ending loop! Anyway to let the script run until it is done use...

[code]// place at the top of your script!

ignore_user_abort ( 'true' );
set_time_limit ( 0 );[/code]


Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.