PHP fails to chmod?

走远了吗. 提交于 2019-12-05 20:32:29

You may have to clear the umask first before creating the directory. However it is recommended to adjust the permissions using chmod instead of relying on umask.

It looks like you have umask 022. Try to add umask(0) before mkdir

Just read the manual:

The mode is also modified by the current umask, which you can change using umask().

Check your systems umask and make use of the mode parameter accordingly.

Alternatively set the umask to a value you're able to deal with.

Or take care of chmod'ding after the creation of the directory.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!