[PHP] 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 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: Pear question
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:[EMAIL PROTECTED] Sent: 20 May 2004 13:04 To: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Pear question
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 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] Sent: 20 May 2004 13:04 To: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php