* 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 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); Or, as I usually set up for my cli environment (since they ususally desire no buffering), create a php-cli.ini file that has output_buffering turned off. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php