Home > Backend Development > PHP Tutorial > 数据库配置有关问题

数据库配置有关问题

WBOY
Release: 2016-06-13 12:20:44
Original
836 people have browsed it

数据库配置问题
如果用include  会不会在网页 源码中找到连接数据库的地址 用户名 和密码。如果可以看到 应该怎么解决这个问题
------解决思路----------------------
写在中的语言前端是看不到的,除非主动输出到网页,如echo 1;、die('abc');
有些语句报错时可能会输出错误信息到网页,其中会包含错误代码,所以在生产环境下建议用error_reporting(0); 关闭所有错误
------解决思路----------------------
PHP文件是看不到 ,但是你要确保你得源码是PHP的,如果是其他后缀的就无法保证了,但是一般include的都是PHP文件,所以这个问题不存在。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template