ob_gzhandler
| From: | Joey Smith | Date: | Sun, 10 Dec 2000 22:29:05 +0000 |
| Subject: | ob_gzhandler | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-1797@lists.php.net to get a copy of this message | ||
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$