Customizing the PHP Error Handler
By Tony Marston2005-04-09
Introduction
Developers new to PHP often complain there there is no proper error handling in the language. This is utter nonsense. All the functionality is there, you just have to customise it to your specific requirements.
In this tutorial I will show to how to create an error handler that will:
• Trap all errors whether triggered by PHP or a specific function call.
• Filter all errors depending on their error level.
• Output a formatted error message to the user.
• Send an email to the system administrator.
• Write the error details to a separate log file.
Tutorial pages:
|
|
|||||||||
You might also want to check these out:
|
Leave a Comment on "Customizing the PHP Error Handler"
You must be logged in to post a comment.
Link to This Tutorial Page!

