Web execution is bound with the execution time limit in php.ini and it causes 500 internal server error upon the prescribed end of the span. My question is if the CLI, or Command Line Interface SAPI does the same thing with my script? I have a script that may very well run dozens of hours before it finishes its job.
Matt....that could be a bit bad if the script runs away. lol To answer your question, it is based on set_time_limit() in your php.ini file, as Matt was implying. Don't set to unlimited. If it runs away, then you end up needing to restart apache.
Haha, yeah, was just saying that it could be used. I wouldn't suggest using 0 under any circumstances
Yes I used it but mine is on shared hosting so they have hard limited the running time for any script. Even after I used set_time_limit(0), my script still runs to be ended after about half an hour. Gave it a test on the console, seems doesn't have any time limit there.