- error_get_last: documentation ( source)
- headers_sent: documentation ( source)
- register_shutdown_function: documentation ( source)
- implode: documentation ( source)
- get_included_files: documentation ( source)
<?php
function on_shutdown(){
?><!--
Headers Sent: <?php
$file = $line = null;
headers_sent($file, $line);
echo "\n\t\t$file: $line";
?>
Last Error: <?php
echo "\n\t\t";
if(error_get_last())
foreach(error_get_last() as $k=>$v)
echo "\n\t\t$k: $v";
?>
Included Files: <?php
echo "\n\t\t";
echo implode("\n\t\t", get_included_files());
?>
--><?php
}
register_shutdown_function('on_shutdown');