FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Output buffering in included file
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Output buffering in included file [message #178728 is a reply to message #178726] Wed, 25 July 2012 10:00 Go to previous messageGo to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma:
Senior Member
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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Web page design
Next Topic: ncurses on windows
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 01 12:28:56 GMT 2024

Total time taken to generate the page: 0.03890 seconds