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
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).