How to check directory and file's write permission?

Discussion in 'PHP' started by tonyinabox, Oct 19, 2006.

  1. #1
    I guess, for file is "is_writable"

    but I don't have no clue, what is for directory.


    thanks.:eek:
     
    tonyinabox, Oct 19, 2006 IP
  2. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #2
    is_writable works both with files and directories:
     
    wmtips, Oct 19, 2006 IP
    tonyinabox likes this.
  3. tonyinabox

    tonyinabox Peon

    Messages:
    1,988
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thank you wmtips
     
    tonyinabox, Oct 19, 2006 IP
  4. PwrUps

    PwrUps Peon

    Messages:
    377
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    is_writeable also works with directories, I just tried it out and it told me whether a directory I was asking for was writeable or not.
     
    PwrUps, Oct 19, 2006 IP