Re: Pear::DB
| From: | Matthew Weier O'Phinney | Date: | Sun, 27 Feb 2005 19:04:21 +0000 |
| Subject: | Re: Pear::DB | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17709@lists.php.net to get a copy of this message | ||
* news1@newzgate.com <news1@newzgate.com>:
> I want to use Pear::DB class for mysql DB.
>
> There are many script available,
> mine says >>>require_once 'DB.php';<<< in reference to Pear::DB
>
> But I cant find this DB.php script, is it a reference, is it a download.
You need to have PEAR installed on your machine, and then you need to
install DB with PEAR. Typically, PEAR is installed with a default PHP
installation, so all you should need to do is install DB. This varies
based on the OS you're on. On *nix OSes, you would do the following as
root:
# pear install DB
I'm not sure what the equivalent is for Windows -- but the PEAR manual
explains this.
The other thing is that the directory where PEAR libraries are installed
needs to be in your php include_path. Again, by default, it is. However,
you may need to tweak your php.ini file's include_path statement to
reflect this if it isn't.
Information on installing and configuring PEAR is available on the PEAR
website.
--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:matthew@garden.org | http://vermontbotanical.org