Antwort: Re: [Mod_gzip] SEND_AS_IS:HAS_CE message
Stephen Pierzchala
mod_gzip@lists.over.net
Fri, 02 May 2003 12:40:24 -0700
Hi all:
PHP does have Content Compression built into it. I have an entire paper
on PHP compression at http://www.webcompression.org/php-compress.html.
Three lines in the php.ini file that you need to be concerned about:
Method 1:
output_buffering = On
output_handler = ob_gzhandler
zlib.output_compression = Off
Method 2:
output_buffering = Off
output_handler =
zlib.output_compression = On
In your case, setting "output_buffering = Off" will turn off the PHP
compression.
I handle all compression through mod_deflate/mod_gzip, but there is
NOTHING wrong with PHP handling compression for PHP files. It just means
that mod_deflate/mod_gzip doesn't NEED to compress the data.
Just my two cents worth.
smp
Michael.Schroepl@telekurs.de wrote:
> Hi Jack,
>
>
>
>>output_handler = ob_gzhandler
>
>
> this one is known to provide gzip compression for PHP
> scripts - but don't ask me how to configure or even
> disable it.
> As Kevin pointed out, you may want to comment this out.
>
>
>>PS: I have enabled Zend Opertmizer.
>
>
> Heureka.
>
> Please read
> http://www.zend.com/zend/art/buffering.php
> where Zend documents their procedure how to serve PHP
> output in compressed form. (Unfortunately, they don't
> use link targets inside their documents ...)
>
> You don't have any problem at all, except for not reading
> the documentation of the suite of software that you are
> using (which includes
> http://www.schroepl.net/projekte/mod_gzip/status.htm#SEND_AS_IS:HAS_CE
> as well), and thus wondering what their diagnostic output
> means.
> After all, who cares which of your modules actually does
> the compression, as long as any one does it?
>
> Regards, Michael
>
>
>
> P.S.: It took me about 30 seconds to ask Google for
>
> "Zend gzip"; the above link is the _first_ hit.
>
>
> _______________________________________________
> mod_gzip mailing list
> mod_gzip@lists.over.net
> http://lists.over.net/mailman/listinfo/mod_gzip
>
>
>
--
****
Stephen Pierzchala
stephen@pierzchala.com
http://www.performanceguru.com/