I'm having to do some work on an IOMart hosting server which is run on Windows. The file attributes are all set to D and I can't change them to 777. I want to upload image files to the server using oscommerce but keep getting the following error; Warning: move_uploaded_file(D:\webs\url.com\html\images/0000.jpg): failed to open stream: Permission denied in D:\webs\url.com\admin\includes\classes\upload.php on line 91 Warning: move_uploaded_file(): Unable to move 'C:\WINDOWS\TEMP\php1291.tmp' to 'D:\webs\url.com\html\images/0000.jpg' in D:\webs\url.com\html\admin\includes\classes\upload.php on line 91 Code (markup):
ok, apparently it means that the permissions cant be set on this server. Has anyone ever had a hosting company that doesnt let you change the permissions of the individual folders? Personally I think it's ludicrous!
like "nobody" user used in APCHE linux environment there is user group or user with "IUSER" or similar in windows. setting up 777 equivalant permission can be major security threat for windows server. what i can suggest is to use ASP or ASP.NET componets like asp image upload or fileupload (or even modifying script to use web ftp upload) is better option.