permissions problems - files not viewable [Answered]RSS

1 reply

Last post Oct 08, 2008 10:01 AM by w3bgrl

  • permissions problems - files not viewable

    Oct 07, 2008 04:50 AM|w3bgrl|LINK

    I've just upgraded to php 4.4.9 on iis6/fastcgi and an image uploader app is now broken. The code creates a directory with: mkdir($dir, 0777) The permissions appear correct on that created directory, but the files that are uploaded into it now do not have the correct permissions. Instead of having admins, users, iusr_host, system & iis_wpg, it has admins, power users, network service & system. Thanks in advance for your help!
  • Re: permissions problems - files not viewable

    Oct 08, 2008 10:01 AM|w3bgrl|LINK

    figured it out... the temp directory php.ini was storing the images to had the wrong permissions, so when it went to move the images, it kept those permissions. Changed the permissions on that temp directory, and it works. Hopefully this will help someone else, although I would still like to know if unix chmod and octal permissions in a php file is 100% compatible with iis, or if there is a better option that should be included when assigning permissions with php.