title: PHP-uploaded file has incorrect permissions
body: <p>I'm using PHP to allow a user to upload a file. The file is being uploaded, but the permissions on the file are incorrect. I set up the permissions on the folder and checked the box that says apply to all children in the folder.</p>
  
  <p>This works only after I make one change to the newly uploaded file. If I don't make a change to the permissions, it gets this default set that breaks the rest of my application.</p>
  
  <p>For example, <code>C:\uploads\</code> is set to allow users in the group "Everyone" to read and write. This however doesn't apply to the newly uploaded file until I do something to that specific file's permissions (add or remove any user or group to its permissions - this change gets overwritten by the folder's permissions).</p>
  
  <p>This is on IIS6 (I believe) on Windows Server 2003</p>