note 111356 added to function.flush
| From: | AlessandroLattao | Date: | Mon, 11 Feb 2013 12:01:12 +0000 |
| Subject: | note 111356 added to function.flush | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193599@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.flush.php
Edit -- https://master.php.net/note/edit/111356
Del: integrated -- https://master.php.net/note/delete/111356/integrated
Del: useless -- https://master.php.net/note/delete/111356/useless
Del: bad code -- https://master.php.net/note/delete/111356/bad+code
Del: spam -- https://master.php.net/note/delete/111356/spam
Del: non-english -- https://master.php.net/note/delete/111356/non-english
Del: in docs -- https://master.php.net/note/delete/111356/in+docs
Del: other reasons-- https://master.php.net/note/delete/111356
Reject -- https://master.php.net/note/reject/111356
Search -- https://master.php.net/manage/user-notes.php