I want to make all fatal errors trigger an error file to be include, the
file to exit, and the error never t be displayed. Is there any way to
do this without access to php.ini?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I want to make all fatal errors trigger an error file to be include,
the file to exit, and the error never t be displayed. Is there any
way to do this without access to php.ini?
Implement your own error handler. There is a load of documentation in the
manual.
--
Dan Hardiker [[EMAIL
Thanks. I am trying, but it refuses to work. Can you help? My code is:
function error_handler ($code, $str) {
if(($errno == FATAL) (error_reporting() != 0)){
//include the error file
exit;
}
}
set_error_handler(error_handler);
//set_error_handler returns false. When I test it, the
3 matches
Mail list logo