If we want to check header is sent already or not then following method is used
if (headers_sent($filename, $linenumber))
{
echo "Header is sent in file ".$filename." at line number".$linenumber
}
if (headers_sent($filename, $linenumber))
{
echo "Header is sent in file ".$filename." at line number".$linenumber
}
Comments
Post a Comment