fungsi redirect jika error php scripts
<?php
function fatalErrorHandler(){
$error = error_get_last();
if(($error['type'] === E_ERROR) || ($error['type'] === E_USER_ERROR))
echo '<script language="javascript"> window.location.href = "'.get_bloginfo('url').'" </script>';}
register_shutdown_function('fatalErrorHandler');
Comments