I am using many PHP scripts and I have database information inside each file, including database name and password.
I want to secure this piece of information, to make sure no one can gain access.
The information could be stored in a separate file which would then be read by the PHP script when needed.
My question is - where do I store it, how, and how do I prevent unauthorized access to that file? I'm also open to other suggestions, anything which will secure the password in the best possible way.