By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,719 Members | 1,220 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,719 IT Pros & Developers. It's quick & easy.

ob_start and a callback function in a class?

P: n/a
hi, i want to use a callback function for my ob_start inside of a class.
but it wont work in any way.
ob_start("bar") works fine if the function is not in a class.
ob_start("$foo->bar") or ob_start("Foo::bar") doesnt.

Is there a way to use a function inside of a class for a callback?
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Martin wrote:
hi, i want to use a callback function for my ob_start inside of a
class. but it wont work in any way.
ob_start("bar") works fine if the function is not in a class.
ob_start("$foo->bar") or ob_start("Foo::bar") doesnt.

Is there a way to use a function inside of a class for a callback?


See: http://www.php.net/ob_start and look for mjr's contribution.
JW

Jul 17 '05 #2

P: n/a
Janwillem Borleffs wrote:
See: http://www.php.net/ob_start and look for mjr's contribution.


oh thank you. maybe i should read the notes too in future :)
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.