我已经在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?
答案 0 :(得分:1)
您还需要安装旧的pear安装程序:
$ pyrus install pear/pear
它提供PEAR.php
。