Re: output buffering / output compression
| From: | Matthew Weier O'Phinney | Date: | Thu, 09 Jun 2005 13:28:40 +0000 |
| Subject: | Re: output buffering / output compression | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-216706@lists.php.net to get a copy of this message | ||
* Paul Birnstihl <paul.birnstihl@acction.com.au>:
> I have recently set up a machine with PHP with both buffering and
> compression turned on. Some of the pages being served include up to 3MB
> of HTML.
>
> Can someone explain the benefit(s) of setting these ini directives to
> values (ie. larger than 4kb) rather than "On" ?
>
> I've played around with it as I thought it might speed things up by
> using a bigger buffer etc. but the only difference I noticed is a big
> jump in memory usage.
The reason to set to a value is to set the buffer size -- and usually
you do this to tune interaction between PHP and Apache and/or the
underlying OS. You want to set it to a value that matches Apache's
buffer size and/or the OS's network buffer size. If you don't know
these, using the defaults is probably the best bet.
--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:matthew@garden.org | http://vermontbotanical.org