Great tip found on Evento Tuts+. This article presents a method for capturing PHP errors and sends email notification. The email contains clues on what went wrong. This is really useful for automation script and debugging.
Quick Tip: Email Error Logs with PHP: