Folder attributes

Discussion in 'Site & Server Administration' started by Weirfire, Dec 19, 2005.

  1. #1
    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):
     
    Weirfire, Dec 19, 2005 IP
  2. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #2
    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! :eek:
     
    Weirfire, Dec 19, 2005 IP
  3. daredashi

    daredashi Well-Known Member

    Messages:
    667
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    120
    #3
    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.
     
    daredashi, Dec 20, 2005 IP
    Weirfire likes this.