What are the default permissions when creating a f

2020-04-14 09:00发布

问题:

If a file does not exist when calling

fopen(<filename>, 'w');

what are the default permissions on the new file supposed to be?

回答1:

That depends on your OS, it's configuration and - depending on OS - the php umaskDocs configuration.