ob_start and a callback function in a class?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin

    ob_start and a callback function in a class?

    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?
  • Janwillem Borleffs

    #2
    Re: ob_start and a callback function in a class?

    Martin wrote:[color=blue]
    > 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?[/color]

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


    JW



    Comment

    • Martin

      #3
      Re: ob_start and a callback function in a class?

      Janwillem Borleffs wrote:[color=blue]
      > See: http://www.php.net/ob_start and look for mjr's contribution.[/color]

      oh thank you. maybe i should read the notes too in future :)

      Comment

      Working...