Re: Zlib Compression || Implementation || Bandwidth Savings?
| From: | CF High | Date: | Tue, 03 Feb 2004 18:02:09 +0000 |
| Subject: | Re: Zlib Compression || Implementation || Bandwidth Savings? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-176708@lists.php.net to get a copy of this message | ||
Hey all.
No such luck re: just using ini_set() to compress pages........
Rush's link is HIGHLY useful -- thanks Rush!
http://www.phpbuilder.com/columns/argerich20010125.php3?page=2
Works without a hitch in IE 5+ and NN 4.7+ with PHP 4.2.3
--Noah
"Ammar Ibrahim" <funky_anubis@yahoo.com> wrote in message
news:20040203114152.50046.qmail@pb1.pair.com...
> if this works for you, could you please post your story in the group. this
> is very interesting if you could save 50% of your bandwidth just by
turning
> the zlib flag :)
>
> good Luck,
> Ammar
>
> "Cf High" <noah@newminddesign.com> wrote in message
> news:20040202154436.32395.qmail@pb1.pair.com...
> > Hey all.
> >
> > Having a good problem -- our hockey report site has jumped from 10
> > gigs/month to 30+ gigs/month & growing.
> >
> > We're getting killed in bandwidth fees at the moment; barring switching
to
> > another host, will utilizing ZLIB compression significantly reduce
> > bandwidth?
> >
> > Also, in terms of ZLIB settings, I've ini_set() zlib compression to ON.
> >
> > Additionally, do I need to ob_start() (& flush) page output?
> >
> > I am uncertain how to implement the following:
> >
> > example.php
> >
> > <?
> > session_start();
> >
> > ini_set("zlib.output_compression","ON");
> > ini_set("zlib.output_compression_level",4);
> >
> > ob_start();
> >
> > $page_contents = fopen(** read file contents to variable **);
> >
> > ob_end_flush();
> > ?>
> >
> > Thanks for any advice,
> >
> > --Noah
> >
> > --