Php5 and pear?

Hi all

I am trying to use the pear package DB, but I’m not sure how.

I just followed the wiki and complied php5 for myself, so it should come with pear packages installed, but i’m not sure how to use them.

I tried following the DB packages example code, but if fails on the following line:
$db =& DB::connect($dsn, $options);

Fatal error: Class ‘DB’ not found in…

what files should i be including?

Pear was installed, but doesn’t have DB by default. You should be able to install the DB piece in your home directory yourself.

As for PHP5 supporting it, this is something Dallas/Nate/Jeff has to say.

Can you explain how to install php into a home directory? I tried a few things but could not figure it out.


EDIT: Nevermind, I followed instructions on the PEAR manual installation page at and it seems to work.

Gotta love what you can get done by reading the manual. :slight_smile:

Real men don’t need manuals…

I’d give my right arm to be ambidexterous!