SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Folder write permission
-
Jun 7, 2007, 15:35 #1
- Join Date
- Jan 2007
- Location
- Kathmandu, Nepal
- Posts
- 47
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Folder write permission
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.
Can anyone help me??
Thanks in advance
RudraVisit www.rusagar.com
-
Jun 7, 2007, 15:52 #2
- Join Date
- Oct 2005
- Location
- London
- Posts
- 1,678
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
HI,
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:
http://catcode.com/teachmod/
hope that helps
-
Jun 7, 2007, 16:03 #3
- Join Date
- Jan 2007
- Location
- Kathmandu, Nepal
- Posts
- 47
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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.
ThanksVisit www.rusagar.com
Bookmarks