Jump to content

noobie question but help please


stuckwithcode

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/215693-noobie-question-but-help-please/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.