Re: Compression

From: Date: Tue, 25 Jul 2000 22:38:18 +0000
Subject: Re: Compression
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8179@lists.php.net to get a copy of this message
Hello Sascha, On 23-Jul-00 19:49:45, you wrote: >> > > > Make sure you check that the browsers accept that encoding. >> > > > >> > > > As far as I know, only the latest versions of netscape and the the >> > > > past few of IE allow that ;O) >> > > >> > > $HTTP_ACCEPT_ENCODING >> > > >> > > Thats the smallest problem, if i can send all output compressed. >> > >> > Can you use the gzopen, gzputs and redirect to the new file you created? >> > >> > The server will have to work a little more but it will save you in >> > bandwith >> > ;O) >> >> Very unelegand. The "beautifullest" way IMHO is (Perl-Syntax!) >> >> if ($HTTP_ACCEPT_ENCODING ~= /gzip/) >> { >> send_output_compressed(gzip,<Compression_Level>); >> } > Content encoding is the job of the webserver, not the > language. Additionally, you should not expect everyone to use > the latest browsers. Some versions of MSIE are known to send > the "Accept-Encoding: gzip" header, but fail to decode the > HTTP-compliant reply properly. I used to tell that to people that ask about compression because somebody told me about problems with MSIE3, but I am not able to recall where I got that information. Do you have any evidence of that? Have you tried it? Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?user=mlemos@acm.org -- E-mail: mlemos@acm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --

« previous php.general (#8179) next »