What are the minimum permission requirements for moving a file through rename?

Discussion in 'PHP' started by clades, Nov 24, 2010.

  1. #1
    I use rename to move files in order to preserve its attributes ...
    I would like to know which of the above are the minimum requirements for the move operation to succeed:

    1. Directory - writable ; file - writable
    2. Directory - writable ; file - readable
    3. Directory - readable ; file - writable
    4. Directory - readable ; file - readable

    This directory above is the source directory (the one the file will be moved from).
     
    clades, Nov 24, 2010 IP