April 10th, 2002, 11:22 AM
I wish I'd known that earlier
I'm sure it's all in the PHP manual somewhere, and I do RTFM on a regular basis, but now I understand properly how error logging works :-) Thanks !
June 28th, 2002, 04:02 PM
This is pretty cool, but...
The fact that you cannot use a custom error handler for fatal errors is a serious drawback. I would be far more interested in catching errors and generating visitor-friendly error pages *if* it worked for fatal errors. But alas, I might as well just turn error displaying off and error logging on (in php.ini), and leave my visitors with a blank page. The whole idea of using a custom error handler for non-fatal errors is cool, but not very useful for most web apps.
August 24th, 2002, 10:16 AM
It IS possible to catch even Fatal Errors
An Alternative to ErrorHandler
There's also a bit more "friendly" error handler (based on ErrorHandler) from http://mojavelinux.com. Find it in the Cooker section of their site.
I was unable to get ErrorHandler to run the way I wanted but found something pretty close in MojaveLinux's handler.
Error Handling In PHP (part 2)
Error Handling In PHP \(part 2\)
The first part of this article demonstrated basic error handling in PHP, explaining the various error types and illustrating the process of building a custom error handler. But that's just the tip of the iceberg - this concluding part goes a step further, showing you to trigger your own errors, and log error messages to a file, database or email address. Read the full article .
Please discuss this article in this thread. You can read the article here .
If you would like to see an article covering a particular topic, please post your request here.