当我使用SMTP发送邮件时,像PHP致命错误:require_once():无法打开所需的'Mail.php'(include_path ='。:/ usr/share/pear:/ usr/share/php')
PHP Fatal error: require_once(): Failed opening required 'Mail.php' (include_path='.:/usr/share/pear:/usr/share/php') in ...
我该如何调试?我已经正确安装了PEAR模块。 安装了PEAR名单
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.11 stable
Console_Getopt 1.3.1 stable
HTML_Common 1.2.5 stable
HTML_Page2 0.6.3 beta
Mail 1.2.0 stable
PEAR 1.9.4 stable
Structures_Graph 1.0.4 stable
XML_Util 1.2.1 stable
不需要安装任何其他的梨相关性?
在此先感谢
您需要在系统上找到Mail.php('pear list-files Mail'),并确定它不是我的包含路径。请注意,您的包含路径在cli和web之间可能会有所不同。 – AD7six
嗨..谢谢reply.when我试试这个(pear list-files Mail)php /home/ec2-user/pear/share/pear/Mail.php和include_path是:/ usr/share/pear:/ usr/share/php – Rajaraman
需要更改包含路径吗? – Rajaraman