热搜:NVER node 开发 php

Secure database passwords in PHP

2024-07-24 14:50:01
Secure database passwords in PHP

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  :)