I am generating one PDF using mpdf, I put my partial code below.
I need to change its permission to 777 for overwrite authorization.
I am doing below procedure but i can not get new file permission as 777!!!
I set my uploaded directory permission to 777 with its sub-directories and files.
can any one help me ?
$mpdf->Output(SITE_PATH."/uploads/upload_documents/myfile.pdf",'F'); //Store output as PDF on this Path.
chmod(SITE_PATH."/uploads/upload_documents/myfile.pdf", 0777); //Change File Permission to 777
Thanks for any help.