Home > Backend Development > PHP Tutorial > PHP program does not display error setting method_PHP tutorial

PHP program does not display error setting method_PHP tutorial

WBOY
Release: 2016-07-13 17:15:49
Original
864 people have browsed it

If you encounter php that does not display errors, it may be that the error prompts are turned off in your php.ini. The solution is very simple. We just need to change the display_error = off in php.ini to on.

Solution

1.

in php.ini

error_reporting = E_ALL & ~E_NOTICE

And remove the previous comment;

2. In php.ini

display_error = off

changed to

display_error = On.

Then restart apache

If on is originally set in your php.ini but still no error is reported, then we need to see if the program blocks the error. If so, just remove it.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/628762.htmlTechArticleIf you encounter php that does not display errors, it may be that you have turned off the error prompts in php.ini. The solution is The method is very simple. We just need to change the display_error = off in php.ini to on. Solution...
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