Installing PEAR packages in a Windows XAMPP environment

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值