note 69056 rejected from function.flush by didou
| From: | didou@php.net | Date: | Sun, 21 Jan 2007 15:17:57 +0000 |
| Subject: | note 69056 rejected from function.flush by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121986@lists.php.net to get a copy of this message | ||
Note Submitter: kamermans at teratechnologies dot net
----
If you use the flush() command, even if you haven't sent anything to the browser, the
headers_sent() command will return true. If you are trying to flush an empty buffer before checking
if the headers are sent, they will always appear sent. This is contradictary to the documentation
since the output buffer doesn't store headers.