I need to run a very long php script (four and a half, five hours).
The script sometimes runs successfully, but sometimes it is killed inexplicably (maybe something has to do with shared hosting?).
I think the solution, possibly for running the script, is smaller pieces.
To do this, I wrote a script file that saves its status and position in an XML file and executes one piece of script before moving the position.
I'm having trouble connecting the last bit of the script, which should terminate the current process and re-execute the script.
or maybe I'm completely barking on the wrong tree!
I read what I can find in SO and elsewhere, but I'm still not wiser :(
Please, help!!!
Dan