dwh/error_handler.php

14 lines
406 B
PHP
Raw Normal View History

2023-10-02 10:26:17 +00:00
<?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;
}
?>