如何在我的网站的单独文件中添加我的数据库密码,而不是像我这样在源代码中编写它们:
$this->connection = mysql_connect("localhost","root","samplepassword");
$db_select = mysql_select_db("mydb",$this->connection);
使其安全,但我不知道如何在我的文件中提及它们:
这是分开的文件:
<files mypasswdfile>
order allow,deny
</files>
在哪里放置密码以及语法应该如何?