Home > PHP > headers_sent()

headers_sent()

It checks whether headers have been sent .

Example

<?php
if (!headers_sent()) {
header(“Location: http://www.phpcodez.com/”);
exit;
}
?>

EmailFacebookLinkedInMySpaceDiggTumblrStumbleUponShare
Beginner's Guide....
Categories: PHP Tags: , ,
Comments are closed.

Switch to our mobile site