Failed opening required 'PHPMailer-master/PHPMailerAutoload.php' (include_path='.:/usr/share/pear:/usr/share/php')

后端 未结 2 753
孤城傲影
孤城傲影 2021-01-29 11:28

I have a hosting server where i have written a php code which is giving me an error, i cant access php.ini as its a hosting server to change anythng

Error

2条回答
  •  时光说笑
    2021-01-29 12:13

    You could check your current working directory, like this:

    echo getcwd();
    

    If you do so, you will see which is your active folder. The next thing you need to do is to check whether there is a PHPMailer-master folder inside your active folder (case-sensitive if you are using Linux). If it does not exist, then you will need to point to the right location instead or to create the folder and copy the file(s) into it. If it exists, check whether you have the necessary privileges and whether there is a file called PHPMailerAutoload.php inside that folder (again, case-sensitive if you are using Linux).

提交回复
热议问题