method 1 - modify apache conf or .htaccess
<files db.php> order allow,deny deny from all </files>
Method 2 - Store them in a file outside web root.
e.g: include('../private/db.php')Better approach is Method 1 + 2 :)
全网最新最细最实用WPS零基础入门到精通全套教程!带你真正掌握WPS办公! 内含Excel基础操作、函数设计、数据透视表等
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号