cannot extend Pear::DB class

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
g8z
Forum Newbie
Posts: 3
Joined: Thu May 02, 2002 8:00 pm

cannot extend Pear::DB class

Post by g8z »

hi,

I cannot seem to properly extend the "DB" PHP class from Pear. I have created a new class called "Connection" which extends Pear, but I seem to be able to call functions from the Connection class at all, even though it appears that the class is properly extending the DB class.

What am I doing wrong?

You can download my code from:
http://www.tufat.com/connection_test.rar

Please run the "index.php" file in the public_html directory to see an example of this problem. There is a function called "test" in the Connection class which I am trying to call, but I keep getting an "undefined function" error.

thanks,
Darren
Post Reply