note 111359 added to function.ob-implicit-flush
| From: | AlessandroLattao | Date: | Mon, 11 Feb 2013 12:05:05 +0000 |
| Subject: | note 111359 added to function.ob-implicit-flush | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193602@lists.php.net to get a copy of this message | ||
For people who have problems with flushing here's a working snippet:
<?php
// fix flushing problems
echo str_pad('', 1024);
// turn implicit flush on so every output will be flushed
ob_implicit_flush(true);
// flush the output buffer and turn off output buffering
ob_end_flush();
// your code starts here
echo "<br />Waiting 2 seconds...";
sleep(2);
echo "Waiting 2 seconds...";
sleep(2);
echo "done.";
?>
----
Server IP: 69.147.83.199
Probable Submitter: 79.52.243.97
----
Manual Page -- http://php.net/manual/en/function.ob-implicit-flush.php
Edit -- https://master.php.net/note/edit/111359
Del: integrated -- https://master.php.net/note/delete/111359/integrated
Del: useless -- https://master.php.net/note/delete/111359/useless
Del: bad code -- https://master.php.net/note/delete/111359/bad+code
Del: spam -- https://master.php.net/note/delete/111359/spam
Del: non-english -- https://master.php.net/note/delete/111359/non-english
Del: in docs -- https://master.php.net/note/delete/111359/in+docs
Del: other reasons-- https://master.php.net/note/delete/111359
Reject -- https://master.php.net/note/reject/111359
Search -- https://master.php.net/manage/user-notes.php