简体   繁体   English

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')

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.

相关问题 PHP致命错误:require_once():无法打开所需的'/usr/share/php/Mail.php' - PHP Fatal error: require_once(): Failed opening required '/usr/share/php/Mail.php' 致命错误:require_once()[function.require]:无法打开所需的'languages / Array.php'(include_path ='。:/ usr / share / pear /') - Fatal error: require_once() [function.require]: Failed opening required 'languages/Array.php' (include_path='.:/usr/share/pear/') PHP 致命错误:require():无法打开所需的“template/header.phtml”(include_path='.:/usr/share/php') - PHP Fatal error: require(): Failed opening required 'template/header.phtml' (include_path='.:/usr/share/php') require():打开所需的'../vendor/autoload.php'失败(include_path ='。:/ usr / share / php') - require(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') 致命错误:require_once():无法在第147行的xxx中打开所需的'xxx'(include_path ='.; C:\\ xampp \\ php \\ PEAR') - Fatal error: require_once(): Failed opening required 'xxx' (include_path='.;C:\xampp\php\PEAR') in xxx on line 147 (PHP)(XAMPP)我该如何解决此错误:致命错误:require_once():无法打开所需的'PEAR.php'(include_path ='.; C:\\ php \\ pear') - (PHP)(XAMPP) how do i fix this error: Fatal error: require_once(): Failed opening required 'PEAR.php' (include_path='.;C:\php\pear') htaccess和php_value include_path-致命错误:require_once():无法打开所需文件 - htaccess and php_value include_path - Fatal error: require_once(): Failed opening required file php 致命错误:require_once(): 无法打开所需的 'C:\xampp\htdocs\paribibi/public/index.php' (include_path='C:\xampp\php\PEAR') - php Fatal error: require_once(): Failed opening required 'C:\xampp\htdocs\paribibi/public/index.php' (include_path='C:\xampp\php\PEAR') PHP require_once():无法打开所需的include_path - PHP require_once(): Failed opening required include_path 致命错误:require_once(): 无法打开所需的 'C:/xampp/htdocs/system/system.php' (include_path='.;C:\xampp\php\pear') - Fatal error: require_once(): Failed opening required 'C:/xampp/htdocs/system/system.php' (include_path='.;C:\xampp\php\pear')
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM