Possible Duplicate:
Where to store database login credentials for a PHP application
I want to store some passwords (e.g. for the database connections) in a php file. But only one class should be able to access these data for security reasons.
So I thought, I write these passwords in a method of a generated php class. Then I will check the debug_backtrace to check if access is allowed or denied.
Now I want to set the permissions to execute only so that files can't read the content of the file where the php class is stored. The only problem is, that include doesn't work, because php self needs the rights to read.
Do you have any ideas how to handle this?