O'Reilly logo

Learning PHP, MySQL, and JavaScript by Robin Nixon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding Other PEAR Packages

With PEAR properly installed on your system, you are able to install additional packages from the command line by using one of the commands in Table E-2, where package is the name of a PEAR package, as listed at the web page http://pear.php.net/packages.php.

Table E-2. Installing PEAR packages on different systems

System

Command

Windows

"C:\Program Files\EasyPHP 3.0\php\pear" install package

Mac OS X

/Applications/MAMP/bin/pear install package

Linux Unix

pear install package

To determine which packages are installed, replace install package in Table E-2 with the word list and the output should be similar to the following:

INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE            VERSION STATE
Archive_Tar        1.3.2   stable
Console_Getopt     1.2.3   stable
MDB2               2.4.1   stable
MDB2_Driver_mysql  1.4.1   stable
PEAR               1.7.2   stable
Structures_Graph   1.0.2   stable

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required