failed opening required

Posted on 2012-08-26
Last Modified: 2012-08-28
phpmailer script worked on another host, but I am getting this error on a linux host

Fatal error: require_once() [function.require]: Failed opening required '/PHPMailer_v5.1/class.phpmailer.php' (include_path='.:/usr/lib/php5') in
Question by:rgb192
    LVL 6

    Accepted Solution

    Have a look here :
    LVL 36

    Assisted Solution

    by:Loganathan Natarajan
    Make sure you have the files in the directory and having proper permission to access the files
    LVL 11

    Assisted Solution

    by:Amar Bardoliwala
    Also please check your file spellings with case as LINUX is case sensitive OS

    Author Comment


    similar problem

    but my problem is my script knows that there is a phpmailer directory

    but the error is the require that is in the phpmailer directory
    LVL 11

    Assisted Solution

    by:Amar Bardoliwala
    Hello rgb192,

    As stated above.. problem should be that you script is not able to find or include or access '/PHPMailer_v5.1/class.phpmailer.php'

    So there is a possibility that your path /PHPMailer_v5.1/class.phpmailer.php is wrong
     or your script does not have permission to access that path or file.

    See if following helps you.

    Thank you.


    Author Closing Comment

    when I remove
    then the folder is accessable

    I still get errors, but that is another question

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to count occurrences of each item in an array.

    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

    16 Experts available now in Live!

    Get 1:1 Help Now