Shouldn't that be *don't* use output buffering and...? The flush() function has nothing to do with output buffering, and if output buffering is on you will need ob_flush() as well.Thanks Jay and Mike..
Another (and probably better) solution is to create a php-cli.ini file, which will be picked up only by your CLI version, and put
output_buffering = Off implicit_flush = On
in it. (Implicit flushing is usually expensive and inappropriate when generating Web pages, but usually exactly what you want when running from the command line.)
Cheers!
Mike
Mike.. how does the CLI version of PHP know to use the new ini file?
Rod
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php