unless you want the server to write to files you shouldnt need any higher.
I want my PHP script to be able to write files. So, that means I need 775, right? By default my files are 644. I was thinking, would 665 not be sufficient for allowing PHP and myself to modify a file while still giving the user access to read it? What exactly is the use of allowing execution on a PHP file? Read access will still be sufficient for the script to run, so is it really necessary?
Also, I don't know how many people know this, but a lot of hosts are very, very stupid. Some of you are probably saying, "well, yeah..."; others are probably saying, "how so?" Well, I'll tell you. For one, some hosts allow you to read directories outside your own home directory and sometimes even access the files. Sometimes you can't do it directly, but you can still run the "ls" command using passthru(). So, I'm asking all these questions about chmod, because I'm wondering this... If someone could do that on my host (they can't, but hypothetically), how would my files be best protected from tampering while still being usable by me and my PHP scripts.
So, thanks again to anyone who can help. Planetsim and halojoy, thanks plenty for responding. Much love. 😉