I'm trying to setup a custom landing error page in the event there is php errros, I'm using:
function xhandler($number,$string,$file,$line,$context){
include('/path/to/error_text_page.tpl');
exit;
}
error_reporting(E_ALL ^ E_NOTICE);
set_error_handler('xhandler',E_ALL ^ E_NOTICE);
This isn't working though, anyone know what I'm doing wrong?