Set directory permissions - directory already exists

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Karl Groves

    #1

    Set directory permissions - directory already exists

    Can anyone tell me how to go about changing a directory's permissions once
    it already exists? I see in the manual how to do that to a file, but the
    only thing I've found when it comes to a directory's permissions is when
    the directory is made with mkdir()

    --
    Karl Groves

  • Andy Hassall

    #2
    Re: Set directory permissions - directory already exists

    On Tue, 09 Jan 2007 21:32:33 GMT, Karl Groves <karl@NOSPAMkar lcore.comwrote:
    >Can anyone tell me how to go about changing a directory's permissions once
    >it already exists? I see in the manual how to do that to a file
    chmod works on both.

    --
    Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
    http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

    Comment

    • Karl Groves

      #3
      Re: Set directory permissions - directory already exists

      Andy Hassall <andy@andyh.co. ukwrote in
      news:am38q29u6a aopmvu0ehhkjf6a ltuht3pc7@4ax.c om:
      On Tue, 09 Jan 2007 21:32:33 GMT, Karl Groves
      <karl@NOSPAMkar lcore.comwrote:
      >
      >>Can anyone tell me how to go about changing a directory's permissions
      >>once it already exists? I see in the manual how to do that to a file
      >
      chmod works on both.
      >
      Thanks for the response. The PHP manual says:
      <quote>
      chmod -- Changes file mode
      Description
      bool chmod ( string filename, int mode )

      Attempts to change the mode of the file specified by filename to that given
      in mode.
      </quote>

      Which led me to believe it was only for files.
      I'll give it a try. Thanks

      --
      Karl Groves

      Comment

      Working...