I have a PHP script that is supposed to run for a long time (appx 20 hours) , but it simply quits for no apparent reason after several hours (sometime after 5 hrs, sometime after 10...). Script is running on shared hosting (I tried several hosts - same result) It is not the CPU usage issue - there is a lot of 'sleep time', waiting for http requests; not much processing. Somebody on the forum briefly mentioned that running such long scripts is not good, but no reasoning was given. Is this really so, and if it is why?
If this is not good to do in principle, I will probably have the script modified so it runs a series of smaller cron jobs, but I would first like to know if this really is the problem.
I appreciate any help you could give me.