"Undefined class" error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mns9939
Forum Newbie
Posts: 2
Joined: Fri May 24, 2002 8:46 am

"Undefined class" error

Post 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,
:(
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

replace the include() by require() and look if your script is still living after this ;)
Post Reply