mkdir always sets folders to read-only?

后端 未结 3 1685
时光取名叫无心
时光取名叫无心 2021-01-25 23:42

i am trying to create folders from within php. Whenever i use the mkdir function with permission 0777 i get a read-only folder. I want this folder to be read & write. The p

3条回答
  •  花落未央
    2021-01-26 00:31

    In a shared environment, mkdir fails to set the permissions properly. A workaround is to set the chmod with chmod() after you've created the directory.

提交回复
热议问题