[nycphp-talk] Seeking Basic PHP IM/Threaded Msg Bd Suggestion
David.SextonJr at ubs.com
Mon Aug 4 14:03:33 EDT 2003
>"Several servers, especially on Win32, will still buffer the output from
>script until it terminates before transmitting the results to the browser."
>So, it looks like you might be out of luck on Win32, but maybe Apache still
>works, even on Windows.
Yes, unfortunately it does look that way, unless there is a way to
"convince" IIS into behaving differently. I just wanted to make sure I
wasn't overlooking anything from a PHP perspective. Thanks for the insight.
From: Chris Shiflett [mailto:shiflett at php.net]
Sent: Monday, August 04, 2003 1:06 PM
To: Sexton, David; 'NYPHP Talk'
Subject: RE: [nycphp-talk] Seeking Basic PHP IM/Threaded Msg Bd
--- "Sexton, David" <David.SextonJr at ubs.com> wrote:
> I can't seem to get this (your flush example) to work on Win32.
> I've heard that some versions of IE output 1 byte at a time, but
> it works fine from your host with IE6. Anyone know how to get
> this to work with IIS? Thanks.
So you copy/pasted the code and tried it on IIS? I just want to make sure I
understand what isn't working.
That being the case, there are several things that can make flush() not work
like you want (even with Apache). Basically, any buffering is going to screw
up, unless you can control the buffering also. For example, with ob_start()
friends, you can ob_flush() and then flush(), and you're fine. Of course,
Web server buffering, it's not as easy to force it to flush when you want.
Web client buffering (like some versions of IE use to make it look like they
render faster), I've heard of some "tricks" you can use like generating a
of whitespace output first.
http://www.php.net/flush has this to say:
"Several servers, especially on Win32, will still buffer the output from
script until it terminates before transmitting the results to the browser."
So, it looks like you might be out of luck on Win32, but maybe Apache still
works, even on Windows.
Become a better Web developer with the HTTP Developer's Handbook
Please do not transmit orders or instructions regarding a UBS account by
email. The information provided in this email or any attachments is not an
official transaction confirmation or account statement. For your protection,
do not include account numbers, Social Security numbers, credit card
numbers, passwords or other non-public information in your email. Because
the information contained in this message may be privileged, confidential,
proprietary or otherwise protected from disclosure, please notify us
immediately by replying to this message and deleting it from your computer
if you have received this communication in error. Thank you.
UBS Financial Services Inc.
UBS International Inc.
More information about the talk