Home >Backend Development >PHP Problem >What to do if there is no error message in php

What to do if there is no error message in php

藏色散人
藏色散人Original
2020-08-20 10:32:242148browse

Solution to the problem that php has no error message: 1. If you do not have the permission to modify "php.ini", modify the code to "ini_set("display_errors", "On");"; 2. Modify The content of "php.ini" is "display_errors = On".

What to do if there is no error message in php

Recommended: "PHP Video Tutorial"

php open error message

If you do not have the permission to modify php.ini, you can do the following:

ini_set("display_errors", "On");
error_reporting(E_ALL | E_STRICT);

Of course, if you can modify php.ini , as follows:

display_errors = On
error_reporting  =  E_ALL & ~E_NOTICE

The above is the detailed content of What to do if there is no error message 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