Home > php教程 > php手册 > body text

php程序不显示错误设置方法

WBOY
Release: 2016-06-13 10:16:46
Original
893 people have browsed it

如果你碰到php 不显示错误的话可能是你php.ini中把错误提示给关了,解决办法很简单我们只要把php.ini中的display_error = off改成on即可。

解决办法

1、php.ini里的

error_reporting  =  E_ALL & ~E_NOTICE

并且把前面的注释去掉;

2、php.ini里把

display_error = off

改为

display_error = On。

然后重启apache即可

如果你的php.ini中本来就是设置了on但还是不报错,那我们要看看是不是程序要屏蔽了错误错,如果是去掉就可以了。

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!