Based on the answer at How to secure database passwords in PHP?, php file with sensitive content should be move out of the source code. Where in the server should I put them?
I have a php file that I put outside the www
folder in wamp and accessing them using an absolute path C:\wamp\apps\phpmyadmin4.0.4\libraries\config\sql.php
. In my php file, when I try to use mySQL, I will include the file using:
<?php
include 'C:\wamp\apps\phpmyadmin4.0.4\libraries\config\sql.php';
?>
Is that secure? or is there another way to do it?