在php中使用fopen()创建文件时的默认权限是什么?


What are the default permissions when creating a file with fopen() in php?

如果调用

时文件不存在
fopen(<filename>, 'w');

新文件的默认权限应该是什么?

这取决于你的操作系统,它的配置和-取决于操作系统- php umask Docs配置。