Note on my example by comparing it to a similar example at zend:

Note that this example requires PHP 4.0.4 (not yet released at the time of
writing) or later, compiled with zlib support turned on. Earlier versions of
PHP may not support the optional argument for ob_start(), and don't include
the gzencode() function.


So if you are using an older version of PHP, you need to kill all the flashy
parts of my example (har har) and just use a pure ob_start() and
ob_end_flush calls.


--
Plutarck
Should be working on something...
...but forgot what it was.


""Plutarck"" <[EMAIL PROTECTED]> wrote in message
9aj9co$i1b$[EMAIL PROTECTED]">news:9aj9co$i1b$[EMAIL PROTECTED]...
> I just tried it, and it seems to work like a charm on my Win98 machine
> (WAMP).
>
> So far I have no problems with output buffering on my machine. Test
script:
>
> <?php
> function alter_buffer($buffer)
> {
>  $buffer = ereg_replace("he", "MWUAHAHA", $buffer);
>  return $buffer;
>
> }
>
> ob_start("alter_buffer");
> echo "hi! ";
> echo "ho! ";
> echo "he! ";
> ob_end_flush();
> ?>
>
> Should output:
>
> hi! ho! MWUAHAHA!
>
> So as far as I know, at very least version 4.0.4pl1 supports Windows.
> Haven't tried anything with the gzhandler yet, but I'm told it works fine
as
> long as you are using the windows port of it.
>
>
> --
> Plutarck
> Should be working on something...
> ...but forgot what it was.
>
>
>
> "Christian Dechery" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > While struggling to get MS SQL error messages from PHP, someone here
gave
> > me the idea of capturing the output when executing a query and even
> offered
> > me the code (thanks again)... I tried, the code was correct, but nothing
> > happened...
> >
> > I develop under Win98Me with Apache... but the script will run in Win2k
> > with IIS...
> >
> > does any of the ob_*() function family works under Win9x, or just in
UNIX
> > and Win2k/NT? Is there a reasonable explanation for this?
> >
> > I see this as a real fault... means that nobody developing in Win9X
> > platforms can get MS SQL error messages, or anything that needs some
more
> > of output handling, and not just relying on *_error() functions...
> > ____________________________
> > . Christian Dechery (lemming)
> > . http://www.tanamesa.com.br
> > . Gaita-L Owner / Web Developer
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to