note 20212 deleted from function.ob-start by sniper
| From: | sniper@php.net | Date: | Tue, 25 Feb 2003 08:16:56 +0000 |
| Subject: | note 20212 deleted from function.ob-start by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-44488@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.