This is a simple PHP error/exception handler that can deal with shutdown (fatel) errors, standard errors and exceptions.

It can “intelligently” log, email and display errors based on whether PHP is running in CLI or HTML mode. Only a basic error message will be displayed to users if running on a production system.

Example

More On GitHub

https://github.com/wbfy/simple-custom-php-error-exception-handler

Licence

The class is licensed under the MIT licence.

Copyright (c) 2012 Steve Perkins, Websites Built For You

Feedback

All of your feedback (good and bad!) is appreciated. Please use the comments section below or the online contact form for anything more confidential.

Need Any Help?

Do you need help with this or any other project? Drop a comment below or click the Contact Me! button.

A Simple Custom PHP Error/Exception Handler

One thought on “A Simple Custom PHP Error/Exception Handler

Leave a Reply

Your email address will not be published. Required fields are marked *