PEAR已安装但无法正常工作。 PEAR.php在哪里?

时间:2013-02-01 11:01:00

标签: email pear php pyrus

我已经在pyrus.phar中使用C:\PEAR为IIS7上的PHP安装了PEAR。我require_once文件Mail.php后我也下载了PEAR邮件包,我得到了HTTP Error 500.0 - Internal Server Error

这是我的代码:

<?php
    set_include_path('C:/PEAR/php');
    require_once 'Mail.php'; //should give me a blank page but is giving me an error
?>

我在Mail.php中检查了一行require_once 'PEAR.php';

现在我从哪里获得这个PEAR.php?

1 个答案:

答案 0 :(得分:1)

您还需要安装旧的pear安装程序:

$ pyrus install pear/pear

它提供PEAR.php