Re: Gzipped output

From: Date: Thu, 14 Feb 2008 20:50:17 +0000
Subject: Re: Gzipped output
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-269324@lists.php.net to get a copy of this message
On Sun, February 10, 2008 7:45 am, Jakub wrote: > is it possible to make something like "gzipped echo"?. > My idea was: > $gzOut = gzopen('php://output','w'); > but it fails with an error: <b>Warning</b>: gzopen(php://output) [<a > href='function.gzopen'>function.gzopen</a>]: could not make seekable - > php://output > > That script generates a large text file to download, so I thought I > can > gzip it somehow to make the downloads faster. The buffered way (to > load > all the output to some $buffer and then echo gzencode($buffer,6);) > consumes too much memory. > Can anyone help me with this? Shove a bezoar down his throat and be done with it. Oh, wait, wrong list... Configure Apache to use gzip and be done with it. :-) -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?

« previous php.general (#269324) next »