RE: [PHP] file compression
| From: | Nold, Mark | Date: | Wed, 22 Nov 2000 01:57:26 +0000 |
| Subject: | RE: [PHP] file compression | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-26561@lists.php.net to get a copy of this message | ||
----------------------------------------------------------------------------
-----------------
Disclaimer: The information contained in this email is intended only for the
use of the person(s) to whom it is addressed and may be confidential or
contain legally privileged information. If you are not the intended
recipient you are hereby notified that any perusal, use, distribution,
copying or disclosure is strictly prohibited. If you have received this
email in error please immediately advise us by return email at
postmaster@normandy.com.au and delete the email document without making a
copy.
----------------------------------------------------------------------------
-----------------
I think its accepted by Netscape 3 and IE 4 onwards.
Which means that only a small percentage of users wouldnt be able to use the
feature.
We find its pretty impressive to zip a large file before display and the
users only notice the speed difference.
I did find however using gzip compression at level 9 was a bit much and
slower on the PC to decompress and that a compression level of 6 was a good
balance between size and speed.
mn
Mark Nold
markn@enspace.com <mailto:markn@enspace.com>
Senior Consultant
Change is inevitable, except from vending machines.
-----Original Message-----
From: jeremy brand [mailto:jeremy@nirvani.net]
Sent: Wednesday, November 22, 2000 3:14 AM
To: Robert Collins
Cc: PHP General List
Subject: Re: [PHP] file compression
That is true with some browsers.
You can check the Accept-Encoding: (I think -- see the HTTP RCF for
sure) headers. If it includes application/gzip, then is should be
okay.
But, keep in mind, this is not common practice, it adds overhead to
your servers and introduces a major risk of your web site appearing
broken to large percentage of your audience.
-jeremy brand
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
- - - - - - - - - - - - - - - - - - - - - - - - -
I am pleased to see that we have differences. May we together become
greater than the sum of both of us.
-- Surak of Vulcan, "The Savage Curtain", stardate 5906.4
On Tue, 21 Nov 2000, Robert Collins wrote:
> Date: Tue, 21 Nov 2000 12:12:36 -0700
> From: Robert Collins <rcollins@Insight.com>
> To: PHP General List <php-general@lists.php.net>
> Subject: [PHP] file compression
>
> I once read that you can send a file using PHP to the browser that is
> compressed(eg: g-zipped)
> and that that file would be decompressed and loaded into the browser.
>
>
> Robert W. Collins
> Web Developer II
> Insight / TC Computers
> www.insight.com
> www.tccomputers.com
>