You are here:  » Using $this for the callback

Support Forum



Using $this for the callback

Submitted by bluesaga on Fri, 2007-03-02 16:51 in

Say i am using this in a class, i would not want to have to have a seperate function outside the class!

I have tried:

<?php
 MagicParser_parse
($filename,array($this'recordhandler'),$format);
?>

PHP Fatal error: Function name must be a string in /sites/_shared/MagicParser.php on line 2

Fatal error: Function name must be a string in /sites/_shared/MagicParser.php on line 2

Do you know of anyway i can do this?

Im going to procede to hack the script until i get this to work, just letting you know of the issue at hand also :)