Home > Backend Development > PHP Tutorial > 配置php网页显示异常

配置php网页显示异常

WBOY
Release: 2016-06-13 12:36:31
Original
768 people have browsed it

配置php网页显示错误

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

这时自己配置的目录文件



配置apache  这个文件D:\AppServ\apache\conf\httpd.conf

php_flag display_errors         on
php_value error_reporting    2039
Copy after login
放到最后两行



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

display_errors   =  On
error_reporting =  E_ALL | E_STRICT
Copy after login

放在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