How the Header function works? I still don't get it...
I sample this one and its giving me error
<?php header("HTTP/1.0 404 Not Found"); ?>
How this really works? Could somebody please give me an idea? 😕
What error are you getting?
HalfaBee wrote:What error are you getting?
This one...
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\sample.php:13) in C:\xampp\htdocs\sample.php on line 14
You need to ensure that absolutely nothing gets output to the browser before the header() function is called. This includes any text before the <?php tag, even if that text is just a space or a newline.
NogDog wrote:You need to ensure that absolutely nothing gets output to the browser before the header() function is called. This includes any text before the <?php tag, even if that text is just a space or a newline.
including some HTML tags??
"absolutely nothing"
cahva wrote:"absolutely nothing"
THANKS! 😉