note 87807 added to function.flush
| From: | mandor at mandor dot net | Date: | Tue, 23 Dec 2008 03:20:14 +0000 |
| Subject: | note 87807 added to function.flush | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-148468@lists.php.net to get a copy of this message | ||
This is what I use to turn off pretty much anything that could cause unwanted output buffering and
turn on implicit flush:
<?php
@apache_setenv('no-gzip', 1);
@ini_set('zlib.output_compression', 0);
@ini_set('implicit_flush', 1);
for ($i = 0; $i < ob_get_level(); $i++) { ob_end_flush(); }
ob_implicit_flush(1);
?>
If it still fails though, keep in mind that Internet Explorer and Safari have a 1k buffer before
incremental rendering kicks in, so you'll want to output some padding as well.
----
Server IP: 195.221.21.36
Probable Submitter: 81.50.47.232
----
Manual Page -- http://www.php.net/manual/en/function.flush.php
Edit -- https://master.php.net/note/edit/87807
Del: integrated -- https://master.php.net/note/delete/87807/integrated
Del: useless -- https://master.php.net/note/delete/87807/useless
Del: bad code -- https://master.php.net/note/delete/87807/bad+code
Del: spam -- https://master.php.net/note/delete/87807/spam
Del: non-english -- https://master.php.net/note/delete/87807/non-english
Del: in docs -- https://master.php.net/note/delete/87807/in+docs
Del: other reasons-- https://master.php.net/note/delete/87807
Reject -- https://master.php.net/note/reject/87807
Search -- https://master.php.net/manage/user-notes.php