php - problem with set_error_handler
<p>I'm trying to setup a custom landing error page in the event there is php errros, I'm using:</p>

<pre><code>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);
</code></pre>

<p>This isn't working though, anyone know what I'm doing wrong?</p>
