Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #6655
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Output buffering in included file |
| Date | 2012-07-25 12:00 +0200 |
| Message-ID | <a79uepF914U1@mid.uni-berlin.de> (permalink) |
| References | <61c7743a-3a40-4465-b8a0-47acb31b6628@googlegroups.com> <a79eojFnn7U1@mid.individual.net> <e86f62ea-24bf-4f41-b0a4-e496dbc60175@googlegroups.com> |
Am 25.07.2012 11:41, schrieb Dani: > >> You can do all of it in the include file, but everything which is before/after >> the include file will not be in the buffer. > > But what is before/after the include file, shouldn't it be included in the buffer started with ob_start(); in index.php? > > Thank you :) > You should rethink it. Why have an include file echo-ing or print-ing, catch the output in the same file just to delete it? Your include files should not output anything while included, this is wrong design. If the problem is "blank lines or newlines" in the output, consider leaving off the closing tag ?>, this is standard in Zend programming. /Str.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Output buffering in included file Dani <dsdani@live.com> - 2012-07-24 13:07 -0700
Re: Output buffering in included file "Peter H. Coffin" <hellsop@ninehells.com> - 2012-07-24 15:42 -0500
Re: Output buffering in included file Dani <dsdani@live.com> - 2012-07-25 02:31 -0700
Re: Output buffering in included file "J.O. Aho" <user@example.net> - 2012-07-25 07:33 +0200
Re: Output buffering in included file Dani <dsdani@live.com> - 2012-07-25 02:41 -0700
Re: Output buffering in included file "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-07-25 12:00 +0200
Re: Output buffering in included file Kim André Akerø <kimandre@nospambetadome.com> - 2012-07-25 11:56 +0200
Re: Output buffering in included file Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-25 08:39 -0400
Re: Output buffering in included file Dani <dsdani@live.com> - 2012-07-25 06:31 -0700
Re: Output buffering in included file "J.O. Aho" <user@example.net> - 2012-07-25 17:51 +0200
Re: Output buffering in included file "Peter H. Coffin" <hellsop@ninehells.com> - 2012-07-25 10:43 -0500
Re: Output buffering in included file Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-07-25 18:44 +0200
csiph-web