Re: Pear question
| From: | Aidan Lister | Date: | Thu, 20 May 2004 13:01:47 +0000 |
| Subject: | Re: Pear question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186580@lists.php.net to get a copy of this message | ||
All of this information is on the http://pear.php.net/ website.
A simple usage example of PEAR::DB is here:
http://pear.php.net/manual/en/package.database.db.intro-connect.php
Basically, once you've established that PEAR is installed the user simply
"loads" the script.
Eg.
<?php
include_once 'DB.php';
$db = DB::connect();
?>
If this fails, you'll need to configure your users include_path via php.ini
to contain the location to the PEAR scripts.
Also, I'd run a "pear upgrade-all" to make sure you're using the latest
version of all the packages too.
Hope this helps :)
"Dave Carrera" <dave@ephgroup.com> wrote in message
news:003d01c43e63$800a2750$0301a8c0@daveslaptop...
> Thanks Aidan,
>
> I get a list of installed packages.
>
> What do I or one of my users need to do to access / use the DB package?
>
> Any help, advice, example is very much appreciated.
>
> Dave C
>
>
>
> -----Original Message-----
> From: Aidan Lister [mailto:aidan@php.net]
> Sent: 20 May 2004 13:04
> To: dave@ephgroup.com
> Subject: Re: Pear question
>
>
> PEAR doesn't need to be "installed", so to speak.
>
> PEAR is simply a set of classes, at heart, they can be downloaded and used
> without problem from the pear.php.net website. However, PEAR does have an
> installer program that allows you to install these packages from command
> line.
>
> To check if you have the pear installer intalled, type "pear
list-packages"
> as superuser on your machine. If the installer is not installed, see the
> http://pear.php.net/ website for installation information.
>
> "Dave Carrera" <dave@ephgroup.com> wrote in message
> news:003c01c43e59$07ba7c50$0301a8c0@daveslaptop...
> > Hi List,
> >
> > How do I tell if pear is installed ?
> >
> > If it is not, then how do I add it to my Php.
> >
> > My Php is 4.3.0 on Unix system
> >
> > Thanks for any help or advice
> >
> > Dave C
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.687 / Virus Database: 448 - Release Date: 16/05/2004
> >
>
>
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.687 / Virus Database: 448 - Release Date: 16/05/2004
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.687 / Virus Database: 448 - Release Date: 16/05/2004
>