RE: [PHP] CLI question

From: Date: Thu, 18 Dec 2003 17:00:38 +0000
Subject: RE: [PHP] CLI question
Groups: php.general 
Request: Send a blank email to php-general+get-172957@lists.php.net to get a copy of this message
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: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#172957) next »