Re: ob_gzhandler

From: Date: Sun, 10 Dec 2000 23:01:10 +0000
Subject: Re: ob_gzhandler
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-1799@lists.php.net to get a copy of this message
At 00:29 11/12/2000, Joey Smith wrote:
I think I missed the beginning of the whole "ob_gzhandler" discussion. Is there something I have to do to enable this? I have tried both the CGI and static Apache module with the following script: <?php $a=50; ob_start("ob_gzhandler"); echo str_repeat('a',$a); ob_end_flush(); ?> Testing apache module: $telnet localhost 80 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET /test/ob_gzhandler.php HTTP/1.0 HTTP/1.1 200 OK Date: Sun, 10 Dec 2000 22:27:04 GMT Server: Apache/1.3.12 (Unix) PHP/4.0.4RC3 X-Powered-By: PHP/4.0.4RC3 Connection: close Content-Type: text/html aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaConnection closed by foreign host. Testing CGI: $php -f /usr/local/apache/htdocs/test/ob_gzhandler.php aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa$
Good, that means that it works well so far :) Try adding 'Accept-Encoding: gzip' to your HTTP request. Zeev -- Zeev Suraski <zeev@zend.com> CTO, Zend Technologies Ltd. http://www.zend.com/

« previous php.qa (#1799) next »