I cannot figure out how to report fatal errors. Today, I happened to notice a certain page that tried to access a class that wasn't defined, and the error was printed to the screen. Yikes!!
If a fatal error were to occur I want my site to to immediately send me a notification email and also to log the details on the server so I can give my site urgent attention. How can I handle fatal errors?
The only thing I've found out so far is that i can do a "error_reporting(0)", but that just prevents them from displaying. I need to intelligently handle fatal errors.
Help!
Jonathan