note 20212 added to function.ob-start
| From: | php at kreapc dot de | Date: | Tue, 26 Mar 2002 18:44:25 +0000 |
| Subject: | note 20212 added to function.ob-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28239@lists.php.net to get a copy of this message | ||
You should be aware that you can't use ob_start/ob_flush/ob_* inside an output buffering
handler.
so doing
function footer($text)
{
ob_start();
include("actual_footer_file.php");
$text .= ob_get_contents();
ob_flush_clean;
return $text;
}
ob_start("footer");
will _NOT_ work. (Fatal error: Cannot use output buffering in output buffering display handlers in)
this is very unfortunate, because it would make adding page footers *much* easier.
--
http://www.php.net/manual/en/function.ob-start.php
http://master.php.net/manage/user-notes.php?action=edit+20212
http://master.php.net/manage/user-notes.php?action=delete+20212
http://master.php.net/manage/user-notes.php?action=reject+20212