On 18 December 2003 14:48, Rodney Green wrote: > Ford, Mike [LSS] wrote: > > > 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. > > > > 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 > > > Thanks Jay and Mike.. > > Mike.. how does the CLI version of PHP know to use the new ini file?
Because it's there! (And it's called php-cli.ini.) Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php