stuckwithcode Posted October 12, 2010 Share Posted October 12, 2010 I have a script that uploads pictures to a folder. I used mkdir to create this folder and sub folders. Do I need to chmod folders and files, do i need to do this to my other html, php and image files. I am completetly confused who is the owners group etc thanks Quote Link to comment Share on other sites More sharing options...
AbraCadaver Posted October 12, 2010 Share Posted October 12, 2010 If you used the PHP mkdir() then the dirs are owned by the user that the webserver runs as and so the webserver should be able to upload images there. If you used the operating system mkdir, then you will have to chmod the dirs to be writable by all users or chown them to the webserver user. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.