Jump to content


Photo

Big Script Times out


  • Please log in to reply
2 replies to this topic

#1 Mateobus

Mateobus
  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts

Posted 07 October 2006 - 09:39 PM

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?

#2 printf

printf
  • Staff Alumni
  • Advanced Member
  • 889 posts

Posted 07 October 2006 - 10:40 PM

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...

// place at the top of your script!

ignore_user_abort ( 'true' );
set_time_limit ( 0 );



me!

#3 Mateobus

Mateobus
  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts

Posted 07 October 2006 - 11:00 PM

this is exactly what i was looking for!  i love you printf




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users