How do I check if a directory is writeable in PHP?

前端 未结 10 1601
别跟我提以往
别跟我提以往 2021-01-01 08:07

Does anyone know how I can check to see if a directory is writeable in PHP?

The function is_writable doesn\'t work for folders.

Edit: It doe

10条回答
  •  自闭症患者
    2021-01-01 09:05

    Yes, it does work for folders....

    Returns TRUE if the filename exists and is writable. The filename argument may be a directory name allowing you to check if a directory is writable.

提交回复
热议问题