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

How to open error report in php

王林
Release: 2023-03-06 09:02:02
Original
2490 people have browsed it

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);//显示所有错误
Copy after login

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
Copy after login

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!

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