Re: uh, oh errors?
| From: | Robert Cummings | Date: | Thu, 16 May 2002 17:59:36 +0000 |
| Subject: | Re: uh, oh errors? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97944@lists.php.net to get a copy of this message | ||
Sysadmin@saginawcontrol.com wrote:
>
> What are some benefits to using output buffering versus just letting it
> generate as it goes?
Pros:
- headers can be added at any time
- buffer content can be post processed (gz compression) (xslt)
- if an error occurs can avoid serving half a document
Cons:
- transmission of content doesn't start until preprocessor completes
- slightly more overhead since content must be stored in memory until
buffer is flushed.
Cheers,
Rob.
--
.-----------------.
| Robert Cummings |
:-----------------`----------------------------.
| Webdeployer - Chief PHP and Java Programmer |
:----------------------------------------------:
| Mail : mailto:robert.cummings@webmotion.com |
| Phone : (613) 731-4046 x.109 |
:----------------------------------------------:
| Website : http://www.webmotion.com |
| Fax : (613) 260-9545 |
`----------------------------------------------'