Simply File Upload Question


I’m trying to create my own file upload script.

All is working file except the move_file_upload() function. It seems that it will not write the uploaded file to the destination because it ‘does not have permission’. I have tried to use functions such as fopen and opendir but cannot seem to be able to give access.

I have ensured the folders mode is 755 and the script’s too. I suppose changing the destinaiton to 777 would work, but I obviously don’t want to do that. Is there something I’m missing?

Thanks in advance for your help.

what operating system does your script run on? Linux is a lot stricter when it comes to user permissions than Windows is. Make sure your script runs as a user that’s allowed write permissions on the folder you’re trying to move your uploaded files to.

Sponsor our Newsletter | Privacy Policy | Terms of Service