Home  >  Article  >  Backend Development  >  配置php网页显示各种语法错误_php技巧

配置php网页显示各种语法错误_php技巧

WBOY
WBOYOriginal
2016-05-17 08:55:15804browse

发现问题比解决问题重要,使用php集成开发环境Appserv网页会提示各种语法错误,但自己配置开发环境无法提示错误,特别当不是语法错误,比如com组件的调用,当不知道问题出现在何处,是不能忍受的,这时需要另行配置

这时自己配置的目录文件
pic
配置apache 这个文件D:\AppServ\apache\conf\httpd.conf


复制代码 代码如下:

php_flag display_errors on
php_value error_reporting 2039

放到最后两行

配置D:\AppServ\php\php.ini


复制代码 代码如下:

display_errors = On
error_reporting = E_ALL | E_STRICT

放在php配置文件中,重启apache

OK!
Statement:
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