Here is the error message that I get
Fatal error: require_once() [function.require]: Failed opening required 'Mail.php' (include_path='.:/usr/share/psa-pear/:/usr/share/pear:/local/PEAR/')
Mail.php is here /usr/share/pear
I'm running Centos in a VPS with Plesk. The script works perfectly from the command line but dies in the browser.
Edit: permissions look ok
drwxr-xr-x 16 root root 4096 Jan 30 07:06 pear
Edit2:
after fishing around I think it's related to plesk as explained here
http://www.matteomattei.com/en/install-yum-and-php-pear-on-centos-5/
I have a bunch of include files
-rw-r----- 1 root apache 6648 Jan 31 20:06 12965206700.32285200_httpd.include
-rw-r----- 1 root apache 6532 Jan 31 15:54 12965108850.92819600_httpd.include
-rw-r----- 1 root apache 6532 Jan 31 07:01 12964788880.47252600_httpd.include
After editing the most recent one as follows
grep base 12965206700.32285200_httpd.include
php_admin_value open_basedir /var/www/vhosts/wor.wordswithfriends.net/httpdocs/:/tmp/:/usr/share/pear:/local/PEAR/
php_admin_value open_basedir /var/www/vhosts/wor.wordswithfriends.net/httpdocs/:/tmp/:/usr/share/pear:/local/PEAR/
php_admin_value open_basedir /var/www/vhosts/wor.wordswithfriends.net/httpdocs/:/tmp/:/usr/share/pear:/local/PEAR/
php_admin_value open_basedir /var/www/vhosts/wor.wordswithfriends.net/httpdocs/:/tmp/:/usr/share/pear:/local/PEAR/
And restarting. Still no joy
var_dump(is_file('/usr/share/pear/Mail.php'));- zerkms