I'm having problems including a file that contains my database authentication values. I'm trying to lock down the permissions of the included file so that it isn't world readable for obvious security reasons. However, when I change the permissions from 666 to 660, the file isn't included.
The included file is owned by me and is accessible to users root and apache through group permissions. I'm running RedHat/Apache/PHP/MySQL. I've tried this on both a RH6/PHP3 and a RH4/PHP4 server. Neither seems to like it.
Anyway, what user needs to have read permissions on a file in order for PHP to include it?
Thanks!
-Bill Glick