Re: Re: ob_gzhandler not working with 4.3.1

From: Date: Tue, 08 Apr 2003 08:29:09 +0000
Subject: Re: Re: ob_gzhandler not working with 4.3.1
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-142818@lists.php.net to get a copy of this message
You misunderstand. ob_gzhandler does gzip your page, but it does it entirely transparently (the only difference in your script will be that the output is gzipped, any calls to ob_get_contents() will return the non-gzipped version. gamin wrote:
Then what is the purpose of "ob_gzhandler" ? does it simply check if the User-Agent supports gzip and adds the header "content-encoding: gzip" ?
It works transparently at the end of the script, ob_get_contents() should return the contents of the output buffer (not how it will be).
That means at the end of the script i will need to compress the with gzcompress, thus my script will become <? ob_start("ob_gzhandler"); ?> 123 <? $str = ob_get_contents(); ob_end_clean; $str = gzcompress($str); echo $str ?> gamin.
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#142818) next »