note 116485 added to function.flush
| From: | ohcc at 163 dot com | Date: | Sat, 10 Jan 2015 19:04:21 +0000 |
| Subject: | note 116485 added to function.flush | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-201398@lists.php.net to get a copy of this message | ||
Try to add more white spaces if your ob_flush() and flush() don't work, especially under NGINX.
However, too many white spaces can be a challenge to your web browser.
<?php
ob_clean();
while(true){
echo str_repeat(' ',1024*1024*4);
echo 'hello, world ...<br />';
ob_flush();
flush();
usleep(1000);
}
----
Server IP: 72.52.91.14
Probable Submitter: 118.124.214.239
----
Manual Page -- http://php.net/manual/en/function.flush.php
Edit -- https://master.php.net/note/edit/116485
Del: integrated -- https://master.php.net/note/delete/116485/integrated
Del: useless -- https://master.php.net/note/delete/116485/useless
Del: bad code -- https://master.php.net/note/delete/116485/bad+code
Del: spam -- https://master.php.net/note/delete/116485/spam
Del: non-english -- https://master.php.net/note/delete/116485/non-english
Del: in docs -- https://master.php.net/note/delete/116485/in+docs
Del: other reasons-- https://master.php.net/note/delete/116485
Reject -- https://master.php.net/note/reject/116485
Search -- https://master.php.net/manage/user-notes.php