path in php.ini

I'm trying to send mail using PEAR framework (and WAMP).

I installed PEAR and package MAIL and it is in correct folder. Problem is with include_path in php.ini.

When I checked where is my php.ini (php --ini), I have result:

Configuration File (php.ini) Path: C:Windows

Loaded Configuration File: C:wampbinphpphp5.3.13php.ini

Scan for additional .ini files in:

Additional .ini files parsed:

In C:wampbinphpphp5.3.13php.ini I set:

include_path = ".;C:wampbinphpphp5.3.13pear"

And I restarded WAMP.

After click button to send mail, I have following error:

Warning: include(Mail.php) [function.include]: failed to open stream: No such file or directory in C:wampwwwsend_mail.php on line 2

Warning: include() [function.include]: Failed opening 'Mail.php' for inclusion (include_path='.;C:phppear') in C:wampwwwsend_mail.php on line 2

Fatal error: Class 'Mail' not found in C:wampwwwsend_mail.php on line 45

No idea, why include_path is here '.;C:phppear'.


Mike B told me to look at your phpinfo() to know exactly what ini file(s) are being used. The file was differ between cli and apache calls (php --ini is misleading).

链接地址: http://www.djcxy.com/p/69666.html

上一篇: Cakephp错误信息可能是我的.htaccess文件

下一篇: 路径在php.ini中