I can use set_error_handler() to catch most PHP errors, but it doesn\'t work for fatal (E_ERROR) errors, such as calling a function that doesn\'t e
set_error_handler()
E_ERROR
You cannot throw an exception inside a registered shutdown function like that:
method() } catch(Exception $e) { # This won't work } ?>
But you can capture and redirect request to another page.
method() ?>