Forum Moderators: coopster
What I'd like to do is scan through the XML files, insert the data nito a database and then moved the files to a 'Processed' folder so that they are not scanned on the next run.
What I'm worried about is that if at any stage of this process, something goes wrong, then it will have inserted data without moving the files, or moved the file without inserting data, etc.
Is there a way to rollback the transaction in MySQL? I am comfortable monitoring for errors within my PHP script.
Thanks.