This forum is no longer active. Please post your questions to our new community site

Forums WAMPStack

Safe Password Location

Subscribe to Safe Password Location 2 post(s), 2 voice(s)

 
Avatar pathweb 1 post

Where do I place php include files containing db_conn passwords to mysql so they are not exposed to the web?
For example in US WAMP I use:
include “Z:\htpasswd\www\db.inc”;
$db_conn = mysql_connect (“$my_host”, “$my_user”, “$my_password”)

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

I suggest to use .htaccess to protect this file. You can find more ideas at http://www.tek-tips.com/viewthread.cfm?qid=42615

Forums WAMPStack