This tutorial assumes you have installed XAMPP for Windows Version 1.7.3, the directory of your xampp is C:/xampp.
Open the control panel then start Apache, visit http://localhost/xampp/pearinfo.php , now you can get pear info , the PEAR packages installed all listed here. You may want to add some more to fill you need. Let's go.
At the dos prompt of your pc, type:
c:/xampp/php/pear list
A list will be displayed.like the following,
C:/>c:/xampp/php/pear list
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE VERSION STATE
Archive_Tar 1.3.3 stable
Calendar 0.5.5 beta
Console_Getargs 1.3.4 stable
Console_Getopt 1.2.3 stable
MDB2 2.4.1 stable
MDB2_Driver_ibase 1.4.1 stable
MDB2_Driver_mssql 1.2.1 stable
MDB2_Driver_mysql 1.4.1 stable
MDB2_Driver_mysqli 1.4.1 stable
MDB2_Driver_oci8 1.4.1 stable
MDB2_Driver_pgsql 1.4.1 stable
MDB2_Driver_sqlite 1.4.1 stable
Mail 1.1.14 stable
Mail_Mime 1.5.2 stable
Mail_mimeDecode 1.5.1 stable
Net_SMTP 1.3.4 stable
Net_Socket 1.0.9 stable
PEAR 1.9.0 stable
PEAR_Info 1.9.2 stable
Structures_Graph 1.0.3 stable
XML_Util 1.2.1 stable
Now everything goes well.If you want to install package Text_CAPTCHA, just type:
c:/xampp/php/pear install Text_CAPTCHA
This command may not works, a tip will be displayed to tell you how to do. Fllow the tip to install the package:
c:/xampp/php/pear install channel://pear.php.net/Text_CAPTCHA-0.4.0
Like the example above, all other packages can be installed in the same way.