You must have created that function inside some class definition. When you
do that, you must first instantiate that class to have access to its
functions (methods).

If you have:

class YourClass
    function YourClass()
        // constructor

    function methodOne()
        // method 1

To call the function methodOne, you must first:

$objectName = new YourClass();

and only then


Hope it helps.


Pedro Alberto Pontes

"Richard Brenner" <[EMAIL PROTECTED]> wrote in message
> Hi.
> When I try to call a manual defined function in my file, I
> the error:
> Fatal error: Call to a member function on a non-object in /www/xyz/.. on
> line xy
> I've defined the function in a seperate .inc file and included this is the
> mainpage.
> Do you have any solutions for this problem?
> Thanks,
> Richard

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to