Well, I’ve written an application, and now I want to write something custom that will handle error reporting instead of displaying built in PHP error reporting.
I would want this software to catch PHP errors, and display the message in custom-made box, something like this is done in kohana framework…
How can I do this? I don’t really want to fill my code with try-catch. What’s the proper way to do this?
You can do this using the
set_error_handler()function.