Retrieving umask OR default permissions for file creation in PHP

51 views Asked by At

If, as answered before, when using fopen() to write a non-existing file, without specifying its permissions, default OS permissions/umask are used to determine the new file's permissions... is it possible to retrieve such default permissions via PHP ?

If PHP is running as an Apache submodule, will using for example umask(null) give me the umask for the Apache user in that system ?

Thank you

0

There are 0 answers