SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast rusagar's Avatar
    Join Date
    Jan 2007
    Location
    Kathmandu, Nepal
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up 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
    Rudra

  2. #2
    SitePoint Wizard
    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

  3. #3
    SitePoint Enthusiast rusagar's Avatar
    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.

    Thanks


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •