Re: [PHP] Disadvantages of output buffering

2007-07-03 Thread Richard Lynch
On Tue, June 26, 2007 8:54 am, Robin Vickery wrote: CON: On a dev server, when you screw up and write an infinite loop, PHP spends a hell of a lot more time spinning its wheels before you kill it because your infinitely long output is all buffered up. [innocent voice] Not that that has ever

Re: [PHP] Disadvantages of output buffering

2007-07-03 Thread Richard Lynch
On Tue, June 26, 2007 7:33 am, Emil Edeholt wrote: My php project would get a much cleaner code if I could set cookies anywhere in the code. So I thought of output buffering. But I can't find any articles on the cons of output buffering. I mean it most be a reason for it being off by

Re: [PHP] Disadvantages of output buffering

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 02:23 -0500, Richard Lynch wrote: On Tue, June 26, 2007 8:54 am, Robin Vickery wrote: CON: On a dev server, when you screw up and write an infinite loop, PHP spends a hell of a lot more time spinning its wheels before you kill it because your infinitely long output

[PHP] Disadvantages of output buffering

2007-06-26 Thread Emil Edeholt
Hi! My php project would get a much cleaner code if I could set cookies anywhere in the code. So I thought of output buffering. But I can't find any articles on the cons of output buffering. I mean it most be a reason for it being off by default? Kind Regards Emil Edeholt -- PHP General

Re: [PHP] Disadvantages of output buffering

2007-06-26 Thread Robert Cummings
On Tue, 2007-06-26 at 14:33 +0200, Emil Edeholt wrote: Hi! My php project would get a much cleaner code if I could set cookies anywhere in the code. So I thought of output buffering. But I can't find any articles on the cons of output buffering. I mean it most be a reason for it being

Re: [PHP] Disadvantages of output buffering

2007-06-26 Thread Emil Edeholt
Thanks for your help Dave and Rob. I will start using output buffering a lot more now. Regards Emil Robert Cummings wrote: Cons of output buffering: - tncy weency time overhead - memory overhead since buffered content remains in memory until flushed. Cheers, Rob.

Re: [PHP] Disadvantages of output buffering

2007-06-26 Thread Stut
Robert Cummings wrote: On Tue, 2007-06-26 at 14:33 +0200, Emil Edeholt wrote: Hi! My php project would get a much cleaner code if I could set cookies anywhere in the code. So I thought of output buffering. But I can't find any articles on the cons of output buffering. I mean it most be a

Re: [PHP] Disadvantages of output buffering

2007-06-26 Thread Robert Cummings
On Tue, 2007-06-26 at 14:09 +0100, Stut wrote: Robert Cummings wrote: On Tue, 2007-06-26 at 14:33 +0200, Emil Edeholt wrote: Hi! My php project would get a much cleaner code if I could set cookies anywhere in the code. So I thought of output buffering. But I can't find any articles

Re: [PHP] Disadvantages of output buffering

2007-06-26 Thread Robin Vickery
On 26/06/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-26 at 14:09 +0100, Stut wrote: Robert Cummings wrote: On Tue, 2007-06-26 at 14:33 +0200, Emil Edeholt wrote: Hi! My php project would get a much cleaner code if I could set cookies anywhere in the code. So I thought

Re: [PHP] Disadvantages of output buffering

2007-06-26 Thread William Lovaton
These two reasons are in fact of little impact. The real problem I have with output buffering in my web app is that it doesn't handle .xls and .pdf files generated on the fly with PHP. Every time the browser is going to download those kind of files it will get corrupted. The only solution I