RE: [PHP] Disabling output control when using "ob_start"

2003-03-25 Thread John W. Holmes
> 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!
> 
> Michael
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

What if you use something like:

Ob_start("dummy");

Function dummy($string) { return $string; }

Which basically does nothing...

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Disabling output control when using "ob_start"

2003-03-25 Thread Chris Hayes
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!
Michael
What 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.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Disabling output control when using "ob_start"

2003-03-25 Thread Michael Heuser
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!

Michael



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Disabling output control when using "ob_start"

2003-03-18 Thread Michael Heuser
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!

Michael



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php