Home >Backend Development >PHP Problem >How to open error report in php

How to open error report in php

王林
王林Original
2020-09-29 09:47:012518browse

How to open the error report in php: directly add [ini_set("display_errors", "On"); ini_set("error_reporting", E_ALL);] to the php file.

How to open error report in php

Specific method:

(Recommended tutorial: php video tutorial)

Directly enter the following Just add two lines of code to the php file

ini_set("display_errors", "On");//打开错误提示

ini_set("error_reporting",E_ALL);//显示所有错误

We can also achieve it by modifying the php.ini configuration file (not recommended).

First open the php.ini file;

Then make the following modifications

display_errors = On

Related recommendations:php training

The above is the detailed content of How to open error report in php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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