note 95399 deleted from function.ob-clean by danbrown
| From: | danbrown@php.net | Date: | Thu, 31 Dec 2009 16:37:27 +0000 |
| Subject: | note 95399 deleted from function.ob-clean by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-164495@lists.php.net to get a copy of this message | ||
Note Submitter: david dot garlisch at gmail dot com
----
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;
}
?>