Re: PHP 4.0 Bug #6481: Gzcompress
| From: | Wico de Leeuw | Date: | Fri, 01 Sep 2000 15:29:18 +0000 |
| Subject: | Re: PHP 4.0 Bug #6481: Gzcompress | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-31582@lists.php.net to get a copy of this message | ||
At 18:16 1-9-00 +0300, Zeev Suraski wrote:
On 1 Sep 2000 wico@cnh.nl wrote:Yes sorry, typo should be $data , as is the /* that's left I cleaned up a lot of debug to make it readable to you guys :) Greetz, WicoFrom: wico@cnh.nlOperating system: linuxPHP version: 4.0 Latest CVS (01/09/2000) PHP Bug Type: Misbehaving functionBug description: Gzcompress Hiya I want to compress webpages for clients that support it $data is a whole html page but: This works: function Compress ($data) {$fp = fopen("/tmp/tempje", "w"); fputs($fp, $data); fclose($fp); $data2 =} this doesn't: function Compress ($data) {cat /tmp/tempje |/usr/bin/gzip -f; */ Header("Content-Type: text/html"); Header("Content-Encoding: gzip"); echo($data2);$data = gzcompress($data); Header("Content-Type: text/html"); Header("Content-Encoding: gzip"); echo($data2);} $data2 isn't being initialized, unless that's a typo. Zeev
Anyone can explain this? Greetz, Wico -- Zeev Suraski <zeev@zend.com> http://www.zend.com/ -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net