I looked at this question: What is the right way of storing database connection strings from the security point of view?
And I'm wondering specifically for connecting to a MySQL database with PDO, how can I be more secure?
- I currently store my password in plain text in a .php file.
- If storing outside the root is optimal, how can I include this file when I must access the database in index.php for example?