Your error correction code should be completely bulletproof.
Sometimes this will be caused due to a really obscure reason why you forgot to check, but you still want it to start when it fought for the code version of the apocalypse.
Writing your output to the database creates a huge dependency for your code, and the lack of a database is likely to be the main cause of the problems that will be reported.
Relying on mail still depends, but the most immediate task in the event of a failure should be to get the system to work again, so sending email is a very effective way of notifying you that something needs to be fixed.
The possibilities of processing PHP files are not amenable to parallel access, therefore, although I would recommend that you log any events locally, do not write files from your code - use the syslog interface. Be sure to send an email with the relevant information after that you sent to syslog.
NTN
FROM.
source share