I am in a shared hosting account with GoDaddy, this is Windows Server and I get this error when trying to upload a file:
Warning: move_uploaded_file(D:\Hosting\6903\html\pdfs\ALDOmypdfAP.pdf) [function.move-uploaded-file]: failed to open stream: Permission denied in D:\Hosting\6903\html\back.php on line 436 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'D:\Temp\php\php98C.tmp' to 'D:\Hosting\6903\html\pdfs\ALDOmypdfAP.pdf
I heard that I can install the php.ini file to change the directory that it downloaded immediately, which will work, but I canβt access the php.ini file.
I tried to create my own php.ini file in the root directory of my directory, and it causes all kinds of problems, for example, not finding the correct MySQL configuration files, goDaddy support in this is to delete the custom php. ini file, funny, I know.
I tried using ini_set like this
ini_set('upload_tmp_dir', 'D:/Hosting/6903/html/pdfs/');
But this did not affect. Do I have other options here? Thanks!
UPDATE: 777 of the target directory are read from Coda Octal permissions.
source share