Home > php教程 > php手册 > 配置php网页显示各种语法错误

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

WBOY
Release: 2016-06-13 12:47:41
Original
1125 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!
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template