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

Posted on 2005-04-26
Last Modified: 2012-06-27
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/ on
line 10

Warning: Failed opening 'Mail/mimeDecode.php' for inclusion
in /home/httpd/vhosts/ 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?
Question by:usachrisk1983
    LVL 96

    Expert Comment

    by:Bob Learned
    If you can't get an answer here, try this PHP-specific topic area:


    LVL 13

    Author Comment

    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.
    LVL 13

    Accepted Solution

    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.

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    This is a general how to create your own custom plugin system for your PHP application that you designed (or wish to extend a third party program to have plugin functionality that doesn't have it yet).  This is not how to make plugins for existing s…
    Part of the Global Positioning System A geocode ( is the major subset of a GPS coordinate (, the other parts being the altitude and t…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now