[英]PHP Fatal error: require_once(): Failed opening required 'Mail.php' (include_path='.:/usr/share/pear:/usr/share/php')
When i send mail using SMTP i am getting error like当我使用 SMTP 发送邮件时,我收到类似的错误
PHP Fatal error: require_once(): Failed opening required 'Mail.php' (include_path='.:/usr/share/pear:/usr/share/php') in ...
PHP 致命错误:require_once(): 在 ...
How can i debug this?我该如何调试? I have installed PEAR module correctly.
我已经正确安装了 PEAR 模块。 Installed pear list is
安装梨列表是
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
Need to install any other pear dependences?需要安装任何其他梨依赖吗?
Thanks in advance提前致谢
Use terminal to check where Pear is installing .php
files.使用终端检查 Pear 在哪里安装
.php
文件。 Use command pear config-get php_dir
to get the right directory.使用命令
pear config-get php_dir
获取正确的目录。 Use the Pear Manual to verify you Pear configuration and for debug.使用Pear 手册来验证您的 Pear 配置和调试。
Ignore the Pear message.忽略梨形消息。
You need to find the correct path to Mail.php.您需要找到 Mail.php 的正确路径。
If it is in the same folder then it will look like this:如果它在同一个文件夹中,那么它看起来像这样:
require_once('Mail.php')
If not, then use absolute path.如果没有,则使用绝对路径。 EG:
例如:
require_once('/var/www/Mail.php')
Or whatever the relative path is:或者无论相对路径是什么:
require_once('directory/Mail.php')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.