Thank you for the reply Richard (and Tom). That news sucks however. Seems that the PHP pre-parser should handle this better. It's not like it's a one-pass parser (like Ruby). <?php ini_set('output_handler', 'mb_output_handler'); echo "\noutput_handler => " . ini_get('output_handler') . "\n"; ?> I suppose I could re-compile my command line version with a different php.ini file, but that's kind of lame that I have to have two php.ini files for what ini_set() SHOULD handle. What other undocumented "gotchas" are there with ini_set() I wonder... DÆVID > -----Original Message----- > From: Richard Lynch [mailto:ceo@xxxxxxxxx] > Sent: Sunday, October 29, 2006 9:25 PM > To: Daevid Vincent > Cc: php-general@xxxxxxxxxxxxx > Subject: Re: How do I get ini_set('output_handler', '') > to work?! > > On Fri, October 27, 2006 3:46 pm, Daevid Vincent wrote: > > What am I doing wrong... > > > > In my php.ini I have this for my web pages (and I want it): > > > > output_handler = ob_gzhandler > > > > But this causes my command line script to not show output until the > > very > > end. > > > > I thought I could disable it at the top of a script, but it's not > > working!?! > > > > #!/usr/bin/php -q > > <?php > > ini_set('output_handler', 'mb_output_handler'); > > TOO LATE! > > The ob_start() has already kicked in by this point. > > ob_flush() until there are no more buffers. > > -- > Some people have a "gift" link here. > Know what I want? > I want you to buy a CD from some starving artist. > http://cdbaby.com/browse/from/lynch > Yeah, I get a buck. So? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php