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
Output buffering in included file [message #178722] Tue, 24 July 2012 20:07 Go to previous message
Dani is currently offline  Dani   
Messages: 4
Registered: February 2013
Location: Massachusetts, USA
Karma:
Junior Member

Hello everybody,
instead of using (e.g. in index.php)

<?php
ob_start();
include('included-file.php');
$output = ob_get_clean();
echo $output;
?>

to store the output buffer into a variable, can I use in included-file.php

<?php
ob_start();
// file content
ob_end_flush();
?>

and in index.php

<?php
ob_start();
include('included-file.php');
?>

?

Thank you :)


Best Regards,

Daniel R.

[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: Sat Nov 23 09:22:11 GMT 2024

Total time taken to generate the page: 0.03747 seconds