Well, I'm doing something for my site that requires files to have full permissions (Execute, Write, and Read on all three groups). At first, I thought that if I made the directory 777, then every file created in that directory will be 777 as well. I'm wrong. An alternative to doing this is to change each file permission myself, but that would be too much work.
So my question is: is there a way to change file permission with PHP? Like a code in PHP that would change the files' permission?
Thanks in advance!














