欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

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

上一篇:

下一篇: