[nycphp-talk] flush usage

CHUN-YIU LAM chun_lam at
Sat Feb 15 03:53:02 EST 2003

try setting "WriteBufSize" to 2500.  This is the number of byte buffer in 
Apache before sending... in the httpd.conf

----Original Message Follows----
From: Carlos Hoyos <cahoyos at>
Reply-To: talk at
To: NYPHP Talk <talk at>
Subject: [nycphp-talk] flush usage
Date: Thu, 13 Feb 2003 13:26:11 -0500
Received: from ([]) by 
with Microsoft SMTPSVC(5.0.2195.5600); Thu, 13 Feb 2003 10:26:34 -0800
Received: from ( [])by (8.12.6/8.12.6) with ESMTP id h1DIQB7e091109for 
<chun_lam at>; Thu, 13 Feb 2003 13:26:33 -0500 (EST)(envelope-from 
null at
X-Message-Info: dHZMQeBBv44lPE7o4B5bAg==
Message-Id: <200302131826.h1DIQB7e091109 at>
X-Paralist-Archived: <>
X-List-Software: Paralist 0.6
List-ID: <>
List-Owner: <mailto:listmaster at>
List-Archive: <>
List-Subscribe: <>
List-Unsubscribe: <>
Organization: New York PHP
X-Mailer: Paramail 0.5
Return-Path: null at
X-OriginalArrivalTime: 13 Feb 2003 18:26:35.0113 (UTC) 

(sorry if this gets posted twice, I had sent it on Monday but never saw it
on the list.)

I have a page that deals with a lengthy process, so I'm using flush to
"push" the content as it's processed and give the user a feeling of page
"in process":
Something like this



foreach($urlList as $url){

       // execute a lengthy process...

       // flush to get the "partial" results displayed.
       print str_repeat(" ", 3000) . "\



But it's not working... blank page until the end of execution.  I believe
it's more of a server / client issue (rather than php), and have to do some
homework on this; but I thought it would be nice to see if anybody wants to
share ideas or suggestions on how you've worked with this situations in the

I'm running php4.3.0,  IBMHTTPServer (ibm's apache build), no mod_gzip,
over Linux... testing on IE 5.0, Netscape 4.7 and Opera 6.0... all failed.
The 3000 in the str_repeat is just any number... just trying to fill any
buffers that might be preventing this from working properly.



--- Unsubscribe at ---

Help STOP SPAM with the new MSN 8 and get 2 months FREE*

More information about the talk mailing list