Permissions for PHP scripts
I'm confused about setting permissions for the PHP scripts on my website (linux/apache). Is it possible for someone to read a file from my site if the permissions are set to 644? For example, I have a php script (set to php) that will decrypt some info using a key. The key is stored in a .inc file in the same directory as my html pages and php scripts - all are set to 644.
I don't want someone to be able to read my script or the include file. Will the 644 be enough? If not, what program could they use to get those files? What can I chmod them to so that they can be run by anybody but not read by anybody except me (the owner)?
Surprisingly, I've had real trouble finding an answer to this - most people don't seem concerned about READING the php script, just changing it.
Thanks,
Tom
|