note 95399 added to function.ob-clean
| From: | david dot garlisch at gmail dot com | Date: | Thu, 31 Dec 2009 07:59:53 +0000 |
| Subject: | note 95399 added to function.ob-clean | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-164492@lists.php.net to get a copy of this message | ||
If you are having problems setting headers, headers_sent() will tell you if and where headers were
sent!
It helped me solve a difficult problem with serving a download file.
<?php
if (headers_sent($filename, $linenum)) {
echo "Headers already sent in $filename on line $linenum\n";
exit;
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 71.159.140.22
----
Manual Page -- http://www.php.net/manual/en/function.ob-clean.php
Edit -- https://master.php.net/note/edit/95399
Del: integrated -- https://master.php.net/note/delete/95399/integrated
Del: useless -- https://master.php.net/note/delete/95399/useless
Del: bad code -- https://master.php.net/note/delete/95399/bad+code
Del: spam -- https://master.php.net/note/delete/95399/spam
Del: non-english -- https://master.php.net/note/delete/95399/non-english
Del: in docs -- https://master.php.net/note/delete/95399/in+docs
Del: other reasons-- https://master.php.net/note/delete/95399
Reject -- https://master.php.net/note/reject/95399
Search -- https://master.php.net/manage/user-notes.php