14 lines
406 B
PHP
14 lines
406 B
PHP
|
<?php
|
||
|
// set the user error handler method to be error_handler
|
||
|
set_error_handler('error_handler', E_ALL);
|
||
|
// error handler function
|
||
|
function error_handler($errNo, $errStr, $errFile, $errLine) {
|
||
|
// clear any output that has already been generated
|
||
|
if (ob_get_length())
|
||
|
ob_clean();
|
||
|
// output the error message
|
||
|
echo null;
|
||
|
// prevent processing any more PHP scripts
|
||
|
//exit;
|
||
|
}
|
||
|
?>
|