Does anyone know how to use the Get header and also use the $header.
When I use:
<?php
$header
?>
as stated in:
http://www.php.net/manual/en/function.header.php
I get the following error:
Warning: Cannot add header information - headers already sent by (output started at c:\opensa\apache\htdocs\php\getallheaders.php:5) in c:\opensa\apache\htdocs\php\getallheaders.php on line 6
Here's my code
<HEAD>
<TITLE>Get All Headers </TITLE>
</HEAD>
<?php
header("HTTP/1.0 404 Not Found"); //line 6
?>
Thanks guys/gals