[PHP] How to disable output buffer per script

2004-06-08 Thread Mike Zornek
I wrote an importer script in PHP that outputs the percentage of items finished in 5% chunks. When I run the script however (web or command line) I don¹t get incremental output .. I get it all in one fell swoop. I have a feeling PHP is buffering it or something. It there any command I can use to

RE: [PHP] How to disable output buffer per script

2004-06-08 Thread Michael Sims
Mike Zornek wrote: I wrote an importer script in PHP that outputs the percentage of items finished in 5% chunks. When I run the script however (web or command line) I don¹t get incremental output .. I get it all in one fell swoop. I have a feeling PHP is buffering it or something. It there

Re: [PHP] How to disable output buffer per script

2004-06-08 Thread Curt Zirzow
* Thus wrote Mike Zornek ([EMAIL PROTECTED]): I wrote an importer script in PHP that outputs the percentage of items finished in 5% chunks. When I run the script however (web or command line) I don¹t get incremental output .. I get it all in one fell swoop. I have a feeling PHP is buffering

RE: [PHP] How to disable output buffer per script

2004-06-08 Thread Michael Sims
Curt Zirzow wrote: I have a feeling PHP is buffering it or something. It there any command I can use to disable such buffering for just this script so I can see some useful feedback. Thanks! Use this at the top of the script: ini_set('output_buffer', 0); The output_buffering setting

Re: [PHP] How to disable output buffer per script

2004-06-08 Thread Curt Zirzow
* Thus wrote Michael Sims ([EMAIL PROTECTED]): Curt Zirzow wrote: Use this at the top of the script: ini_set('output_buffer', 0); The output_buffering setting cannot be controlled via ini_set(), at least according to the manual. I want to say that I confirmed this a long time ago but

Re: [PHP] How to disable output buffer per script

2004-06-08 Thread Mike Zornek
On 6/8/04 11:15 AM, Michael Sims [EMAIL PROTECTED] wrote: Try calling ob_end_flush() at the top of your script. Although I believe some browsers will still buffer a portion of the output before displaying. But if you're running from the command line it should display in real time. I did