I'm trying to set up phpmailer (phpmailer.sourceforge.net) on my server. In the set up instructions it tells me to copy the file class.phpmailer.php into my php.ini include_path.
So I looked in my php.ini file and found that my include path is as follows:
include_path = ".:/usr/share/pear"
I then copied the appropriate file to my includes directory, double checked that the file was actually there, and then moved on with the set up.
The next step was to run a test script to make sure the file was installed properly. Here's the code:
<?php
require("class.phpmailer.php");
$mail = new phpmailer();
?>
Simple enough!
But then when I try accessing the test script at:
http://www.mydomain.com/phpmailer_test.php
I got the following error:
Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/mydomain.com/httpdocs/phpmailer_test.php on line 2
Fatal error: Failed opening required 'class.phpmailer.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/mydomain.com/httpdocs/phpmailer_test.php on line 2
Any ideas why this is happening? I have verified that class.phpmailer.php is in /usr/share/pear
JeNNiDeS