Re: Using only PEAR::DB without any other PEAR class
| From: | Justin Patrin | Date: | Wed, 22 Sep 2004 17:13:28 +0000 |
| Subject: | Re: Using only PEAR::DB without any other PEAR class | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14600@lists.php.net to get a copy of this message | ||
On Wed, 22 Sep 2004 13:52:32 -0300, Ricardo Cezar <hosptalab@wnet.com.br> wrote:
> I will start a new project and want it to use PEAR::DB on it. But the web
> host we use don´t support PEAR. I was thinking if I can use only PEAR::DB in
> my project.
>
By "doesn't support PEAR" do you mean that they won't install it or
that the PHP version they're running is incredibly old? If they just
won't install it, that's fine. You can install and use it yourself.
There's lots of docs about this. Search for "PEAR shared host
install".
> There is a way do use only PEAR::DB or I have to install all PEAR packages
> to put it to work? Can I download the class, "require" it in my code and use
> it normaly?
>
You only need the PEAR package and the DB package in order to use DB.
You also need to set up your include path correctly. Check the PEAR
install docs for more.
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--