note 109239 added to function.flush

From: Date: Fri, 29 Jun 2012 01:19:13 +0000
Subject: note 109239 added to function.flush
Groups: php.notes 
Request: Send a blank email to php-notes+get-188959@lists.php.net to get a copy of this message
I had a bunch of problems trying to get flush working on my windows box, I finally found a solution after reading everyones here and it not working. 1) Set output_buffering = 0 2) Set zlib.output_compression = 0 I then used Wireshark to monitor network packets, and indeed the server was pusing the data, but the browser was not displaying it.. So it was a browser buffer issue (I am on Firefox 13) For me I needed to send about 1k of data before it would display the data. To do this I added more header information.. In php.ini I set default_charset = "utf-8" And that was enough to give me enough for the buffer issue. You can also try doing echo str_repeat(" ", 1024), "\n"; at the start of the script. hope this helps ---- Server IP: 69.147.83.197 Probable Submitter: 24.246.28.219 ---- Manual Page -- http://www.php.net/manual/en/function.flush.php Edit -- https://master.php.net/note/edit/109239 Del: integrated -- https://master.php.net/note/delete/109239/integrated Del: useless -- https://master.php.net/note/delete/109239/useless Del: bad code -- https://master.php.net/note/delete/109239/bad+code Del: spam -- https://master.php.net/note/delete/109239/spam Del: non-english -- https://master.php.net/note/delete/109239/non-english Del: in docs -- https://master.php.net/note/delete/109239/in+docs Del: other reasons-- https://master.php.net/note/delete/109239 Reject -- https://master.php.net/note/reject/109239 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#188959) next »