Secure database passwords in PHP
程序员文章站
2024-01-05 18:54:22
...
Method 1 - modify apache conf or .htaccess
order allow,deny deny from all
Method 2 - Store them in a file outside web root.
e.g: include('../private/db.php')
Better approach is Method 1 + 2 :)
推荐阅读
-
Secure database passwords in PHP
-
使用php时出现了no database selected的问题 求大神帮助
-
CodeIgniter配置之database.php用法实例分析
-
php setcookie(name, value, expires, path, domain, secure) 参数详解
-
PHP | Uploading and reading of files and database 【PHP | 文件的上传和读取与数据库】
-
使用php时出现了no database selected的问题 求大神帮助
-
CodeIgniter配置之database.php用法实例分析,codeigniterdatabase
-
CodeIgniter配置之database.php用法实例分析
-
CodeIgniter配置之database.php用法实例分析_php实例
-
CodeIgniter配置之database.php用法实例分析_PHP