[PHP] Making code execute on fatal error?

2002-06-08 Thread Leif K-Brooks
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

Re: [PHP] Making code execute on fatal error?

2002-06-08 Thread Dan Hardiker
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

Re: [PHP] Making code execute on fatal error?

2002-06-08 Thread Leif K-Brooks
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