Some of my code has a long process, and my ISP limits the scripts to 30
seconds.
Now, I must absolutely create a file with some string (simply a number and
an email), then process any line with some long operations.
If the script timeouts, then calling the script again should start when it
finished.
How to achieve that ?
I tough about deleting the last line every time it's processed and then the
process is done when the file is empty.
There is also the possibility to create a tracker file where I save the last
processed number, but it's longer to do.
Any tip ?
seconds.
Now, I must absolutely create a file with some string (simply a number and
an email), then process any line with some long operations.
If the script timeouts, then calling the script again should start when it
finished.
How to achieve that ?
I tough about deleting the last line every time it's processed and then the
process is done when the file is empty.
There is also the possibility to create a tracker file where I save the last
processed number, but it's longer to do.
Any tip ?
Comment