note 117052 deleted from function.flush by tularis
| From: | tularis@php.net | Date: | Wed, 08 Apr 2015 14:47:51 +0000 |
| Subject: | note 117052 deleted from function.flush by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-202211@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
One of my favorite tricks doesn't seem to work in today's browsers.
echo str_pad('',4096);
flush();
It might be gzip, or some other modern feature or mindset, but I had to bump it a lot higher before
seeing my output. I don't know what the actual threshold is, but this works in the big 3:
function FlushOutput()
{
print str_pad('', 4096*200);
flush();
}