Re: How do I get ini_set('output_handler', '') to work?!
| From: | Richard Lynch | Date: | Mon, 30 Oct 2006 05:25:24 +0000 |
| Subject: | Re: How do I get ini_set('output_handler', '') to work?! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243868@lists.php.net to get a copy of this message | ||
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?