long processes php
Posted
by significance
on Stack Overflow
See other posts from Stack Overflow
or by significance
Published on 2010-04-17T13:17:23Z
Indexed on
2010/04/17
13:23 UTC
Read the original article
Hit count: 281
php
|long-running-processes
hi,
i need to run a really long php script (four and half, five hours).
the script sometimes runs successfully, but sometimes gets killed inexplicably (poss something to do with the shared hosting??).
i think that the solution maybe to run the script is smaller chunks.
in order to do this i have written a script that stores it's status & position in an xml file, and executes one chunk of the script, before moving the position on.
i am having problems hooking up the last bit of the script, which should end the current process & re-execute the script.
or maybe i am barking up the wrong tree completely!
i have read through what i can find on SO and elsewhere but i'm still none the wiser :(
please help!!!
dan
© Stack Overflow or respective owner