Home > Backend Development > PHP Tutorial > 配置php网页显示各种语法错误_PHP

配置php网页显示各种语法错误_PHP

WBOY
Release: 2016-06-01 11:59:05
Original
1194 people have browsed it

发现问题比解决问题重要,使用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!

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