FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP does not flush output on IIS7 ..
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP does not flush output on IIS7 .. [message #178600 is a reply to message #178594] Tue, 10 July 2012 15:47 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 7/10/2012 6:53 AM, brillisoft(at)gmail(dot)com wrote:
> The following PHP program was flushing output correctly on an old Win2000 server with IIS 5.x - but refuses to do the same on a Windows 2008 64 bits server running IIS7.
>
> Rather than throwing a line on the browser every second as coded, it waits the entire loop, buffers the result, and prints all at once when the code ends running.
>

Not unusual. All the PHP flush() can do is flush the PHP buffers.
These are sent to the web server, which may do buffering of its own.

It could also be buffered between the web server and the client
application (i.e. server's OS, routers along the way, client OS), but
these are generally very short time and can *usually* be ignored.

When it finally gets to the client, the browser may display the data
immediately, or it may buffer it until some or all of the data comes in
(i.e. HTML tables are often buffered).

All PHP can control is the initial PHP buffers. Everything else is
beyond its control. Since the only thing you changed was your IIS, I
would suggest you look at IIS to see if there's a way to do what you want.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Extracting multiple matches from a string using preg_replace
Next Topic: Check out www.phpscribble.com
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 23:04:45 GMT 2024

Total time taken to generate the page: 0.04162 seconds