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 $objectName->methodOne(); Hope it helps. -- Pedro Alberto Pontes "Richard Brenner" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi. > > When I try to call a manual defined function in my function.inc file, I get > 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 (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php