I’m using PHP fwrite to write files to a directory. Everything is being written as rw-------, but I need to give them more lenient file permissions, perhaps 022.
Any ideas on how I can enable files to be written with more lenient permissions? I can’t seem to get umask to work.