Re: Disabling output control when using "ob_start"
| From: | Chris Hayes | Date: | Tue, 25 Mar 2003 14:50:28 +0000 |
| Subject: | Re: Disabling output control when using "ob_start" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140967@lists.php.net to get a copy of this message | ||
At 15:41 25-3-2003, you wrote:
I posted this problem a week ago, but no one answered so I try again: Is there a way to disable the call back function set by "ob_start"? I tried: ob_end_flush(); ob_end_clean(); ob_implicit_flush(true); Nothing seams to work. I can't detect the call back function and I can't prevent it either. The call back function is called no matter what! MichaelWhat do you mean with callback function? I simply do it this way:
ob_start();
include('modules/'.$file);
$content=ob_get_contents();
ob_end_clean();
which puts the contents of that file in $content.