"; if (is_file($fname)) { include($fname); } else { $msg = "External file [$fname] DOES NOT EXISTS"; echo "

$msg

"; ob_flush(); exit; } } } function oc_cb($buff, $tp) { global $footer; if ($tp & PHP_OUTPUT_HANDLER_END) { doInclude($footer); } return false; } doInclude($header); ob_start('oc_cb');