在PHP中使用fopen()创建文件时的默认权限是什么? [英] What are the default permissions when creating a file with fopen() in php?
本文介绍了在PHP中使用fopen()创建文件时的默认权限是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果调用时文件不存在
fopen(<filename>, 'w');
新文件的默认权限应该是什么?
what are the default permissions on the new file supposed to be?
推荐答案
That depends on your OS, it's configuration and - depending on OS - the php umask
Docs configuration.
这篇关于在PHP中使用fopen()创建文件时的默认权限是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文