Re: Compression
| From: | Matthias Schniedermeyer | Date: | Sun, 23 Jul 2000 22:03:36 +0000 |
| Subject: | Re: Compression | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7788@lists.php.net to get a copy of this message | ||
#include <hallo.h>
> > 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.
Hmmm. Bad for that users. :-)
I plan to use cookies for some customization settings. (ex. Font-Size)
Then i add one for compression.
Bis denn
--
Real Programmers consider "what you see is what you get" to be just as
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated,
cryptic, powerful, unforgiving, dangerous.