note 33037 added to function.ob-start
| From: | sandhawk at rack1 dot php dot net | Date: | Sat, 14 Jun 2003 19:22:29 +0000 |
| Subject: | note 33037 added to function.ob-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50348@lists.php.net to get a copy of this message | ||
Using php 4.2.2 I found that this dosen't work:
<?php
class CPage
{
var $header;
function CPage()
{
ob_start(array(&$this, "output"))
}
function output($pOutput)
{
$string = $this->header . $pOutput;
return $string;
}
}
$page = new CPage();
?>
however if you replace $this->header for $page->header it will work fine.
----
Manual Page -- http://www.php.net/manual/en/function.ob-start.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33037
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33037&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33037&report=yes