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".
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!