Mateobus Posted October 7, 2006 Share Posted October 7, 2006 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? Link to comment https://forums.phpfreaks.com/topic/23306-big-script-times-out/ Share on other sites More sharing options...
printf Posted October 7, 2006 Share Posted October 7, 2006 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]me! Link to comment https://forums.phpfreaks.com/topic/23306-big-script-times-out/#findComment-105685 Share on other sites More sharing options...
Mateobus Posted October 7, 2006 Author Share Posted October 7, 2006 this is exactly what i was looking for! i love you printf Link to comment https://forums.phpfreaks.com/topic/23306-big-script-times-out/#findComment-105695 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.