How can i give a write permission to the folder and its contents in PHP.
Let me illustrate with an example -
I have a root folder name "Root", I set up write permission to this folder.
FIRST :
Now I have to create new folder with write permission on it. I m able to create the folder but it doesn't have write permission
SECOND :
I need to upload the pictures on those newly created folder. These pictures should also need to have write and execution permissions but I m unable to do so.
You can set permissions easily on directories in your ftp client...i use filezilla ftp...al u do is right click and and select file attributes it'll be similar for most ftps i imagine...you have options to allow read, write and execute....its probably a good idea to disallow write and exectue for the public permissions for security reasons...
or if you're familiar with linux/unix then check this tut out:
I changed the CDMOD. I provided all the permissions(read, write and execution) 777 to the folder i generated from PHP code. I also use ftp ... edit its permission but it is not taking the write permission. It still doesn't contain write permission.
Bookmarks