I have read a little bit about that, but I can't find answer that is telling me exactly what to do.
So here's what I have been doing to store my database password in php:
Lets say that my website is in the folder website. So we have
/website/mysite.php
My password is store outside this folder, in (for exemple)
/mypassword/mypassword.php
and I get it with an include '../mypassword/....';
On this file, the permissions are at 600, so owner can read and edit the file.
Is it the proper way of doing it? or is there another way, more secure? (And easy to use too!) Sorry for my poor english, I'm not a native english speaker.