As I understand it with php and apache when you first upload a file it goes to a tmp file on the webserver. We then use a statement like:
move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadFile)
The problem I am having is that when the file winds up on the server it has no permissions and cannot be pulled up on a web page.
I move the temp file to a folder called upload. It has 755 as the permissons. After the move_uploaded() I check the file I put in upload and it has no permissions.
How do I go about setting the permissions to 755 as I move the file? I did not see anything in the php documenation. I thougt if the folder 'upload' was 755 any files put in would also be.