'edit'); function myErrorHandler($errno, &$errstr, $errfile, $errline) { if (!empty($_SERVER['HTTP_HOST'])) { $errstr = '['.$_SERVER['HTTP_HOST'].'] '.$errstr; } if (!empty($_SERVER['REQUEST_URI'])) { $errstr .= PHP_EOL.' Request-Uri: '.$_SERVER['REQUEST_URI']; } $errstr .= PHP_EOL.' Request-Params: '.json_encode($_REQUEST); $errstr .= PHP_EOL.' '; return false; // continue normal error handler } set_error_handler('myErrorHandler'); echo tests.PHP_EOL; // Use of undefined constant tests