【问题标题】:PEAR installed but not working. Where is PEAR.php?PEAR 已安装但无法正常工作。 PEAR.php 在哪里?
【发布时间】:2013-01-16 16:18:37
【问题描述】:

我在 IIS7 上使用 C:\PEAR 中的 pyrus.phar 为 PHP 安装了 PEAR。当我require_once 文件Mail.php 时,我也下载了PEAR Mail 包,我得到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?

【问题讨论】:

  • 'C:/PEAR/php'里面有什么
  • 如果你打开cmd执行这个:pear config-get php_dir,那个输出是什么?

标签: email pear php pyrus


【解决方案1】:

你也需要安装旧的 pear 安装程序:

$ pyrus install pear/pear

它提供PEAR.php

【讨论】:

    猜你喜欢
    • 2011-12-18
    • 2017-10-05
    • 2015-02-05
    • 2015-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多