Page 1 of 1

Failed opening required FAIL PHP HELP!!

Posted: Wed May 20, 2009 1:58 pm
by bestrong
Hello everyone!

I am having some trouble including the pear mail.php file

my code is

Code: Select all

 
error_reporting(E_ALL);
ini_set('display_errors', '1');
require_once "Mail.php";
 
...more code PHP PHP etc
 
This products the error message

Code: Select all

 
Warning: require_once(Mail.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/vhosts/bluebeanstalk.com/httpdocs/admin/sendmail.php on line 7
 
Fatal error: require_once() [function.require]: Failed opening required 'Mail.php' (include_path='.:/usr/share/pear/') in /var/www/vhosts/bluebeanstalk.com/httpdocs/admin/sendmail.php on line 7
 
 
The include path is correct (include_path='.:/usr/share/pear/) and there are the Mail.php, PEAR.php, etc in that folder.

I have already tried removing the trailing slash on include_path='.:/usr/share/pear/, and that did nothing different.

Also, this is not a case sensitive error...

Thanks so much, :wink:

Ben

Re: Failed opening required FAIL PHP HELP!!

Posted: Wed May 20, 2009 3:01 pm
by Darhazer
Are you sure that there should be a ':' in the include_path
IMHO it should be

Code: Select all

'/usr/share/pear/'