I have an Backup script which is call via curl by night. This script run over the whole base directory with Directory-Iterator an generate an XML-File with filename/directory and checksum. All the stuff will be generate with one simple curl request. But on an second much bigger site the script runs in an Timeout.
So my Question is how can I iterate in parts. My idea is to save the last proceed file into DB/tmpfile when the execution time reaches an specific limit. Then sends an response to say the client please send an new request and repeat it till the complete site is scanned.
All your comments are welcome. Pascal