<?
header("Expires: Sat, 22 Dec 1979 05:30:00 GMT");
echo "This is some text for output.<br />";
if (!headers_sent($filename, $linenum)) {
header("Location: www.yoursite.com");
exit;
} else {
echo "Headers already sent in $filename on line $linenum.<br />";
echo "Headers sent are:<br /> <UL>";
$headers = headers_list( );
foreach($headers as $header) {
echo "<LI>$header</LI>";
}
echo "</UL>";
exit;
}
?>
|