Phillip
Phillip

Reputation: 5666

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

If a file does not exist when calling

fopen(<filename>, 'w');

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

Upvotes: 2

Views: 1025

Answers (1)

hakre
hakre

Reputation: 198109

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

Upvotes: 6

Related Questions