• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 350
  • Last Modified:

PHP : Unable to use the mimeDecode.php file from PEAR

Hi Everyone,

I was hoping for some help in includnig mimeDecode.php in one of my
pages. When I try to include the file using:

include ('Mail/mimeDecode.php')

I get the following:

Warning: open_basedir restriction in effect. File is in wrong
directory in /home/httpd/vhosts/mydomain.com/httpdocs/phptest.php on
line 10

Warning: Failed opening 'Mail/mimeDecode.php' for inclusion
in /home/httpd/vhosts/mydomain.com/httpdocs/phptest.php on line 10

I have confirmed that mimeDecode.php is located here:


I turned off safe mode and confirmed it was off using phpinfo(), but
still have the same problem. Looking at my other settings, I see the
following that I assume are relevant:

include_path .:/usr/share/pear
safe_mode_include_dir /usr/share/pear

Could anyone shed some light on my problem?
  • 2
1 Solution
Bob LearnedCommented:
If you can't get an answer here, try this PHP-specific topic area:


usachrisk1983Author Commented:
Thanks, I expected to see PHP under programming and didn't even consider looking at Web.  If there is a mod out there who has the ability to move this, please feel fere.
usachrisk1983Author Commented:
Was able to solve before getting answer from board, resolution is to modify the httpd.conf and change the open_basedir to include /usr/share/pear.  

Mod, please close.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now