note 117052 added to function.flush

From: Date: Wed, 08 Apr 2015 05:03:40 +0000
Subject: note 117052 added to function.flush
Groups: php.notes 
Request: Send a blank email to php-notes+get-202202@lists.php.net to get a copy of this message
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(); } ---- Server IP: 72.52.91.14 Probable Submitter: 24.56.20.228 ---- Manual Page -- http://php.net/manual/en/function.flush.php Edit -- https://master.php.net/note/edit/117052 Del: integrated -- https://master.php.net/note/delete/117052/integrated Del: useless -- https://master.php.net/note/delete/117052/useless Del: bad code -- https://master.php.net/note/delete/117052/bad+code Del: spam -- https://master.php.net/note/delete/117052/spam Del: non-english -- https://master.php.net/note/delete/117052/non-english Del: in docs -- https://master.php.net/note/delete/117052/in+docs Del: other reasons-- https://master.php.net/note/delete/117052 Reject -- https://master.php.net/note/reject/117052 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202202) next »