<?php
(int) $errors = 0;
echo ("<strong>DEBUG MODE ENABLED!</strong><br />");
function customerrorhandling($error, $errormessage, $bestand, $regel) {
global $errors;
if(++$errors == "1")
echo "<em>DEBUGGING:</em><br />";
$bestand = basename($bestand);
echo <<<ENDHTML
De fout <b> $errormessage </b> trad op in <i>$bestand</i>, regel $regel.<br />
ENDHTML;
}
set_error_handler('customerrorhandling');
?>
<?php
(int) $errors = 0;
echo ("<strong>DEBUG MODE ENABLED!</strong><br />");
function customerrorhandling($error, $errormessage, $bestand, $regel) {
if(++$errors == "1")
echo "<em>DEBUGGING:</em><br />"; De fout <b> $errormessage </b> trad op in <i>$bestand</i>, regel $regel.<br />
ENDHTML;
}
?>