Page 1 of 1

"Undefined class" error

Posted: Fri May 24, 2002 8:46 am
by mns9939
Hi,

I am using classes in my PHP application. I have class ABC which "extends" class XYZ. Both these classes are located in the same directory. When i make a call to these classes, i get the following error:

"Class ABC: Cannot inherit from undefined class XYZ".

What is causing this error? I would appreciate your help.

thanks,
:(

Posted: Fri May 24, 2002 9:11 am
by volka
replace the include() by require() and look if your script is still living after this ;)