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