Php5 and pear?

software development

#1

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);

with
Fatal error: Class ‘DB’ not found in…

what files should i be including?


#2

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.


#3

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

Thanks.

EDIT: Nevermind, I followed instructions on the PEAR manual installation page at http://pear.php.net/manual/en/installation.manually.php and it seems to work.


#4

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


#5

Real men don’t need manuals…

================================
I’d give my right arm to be ambidexterous!