How to prompt error information in php: first open the source code; then add the code "ini_set('display_errors', true);error_reporting(E_ALL);" to the head of the file.
Recommended: "PHP Video Tutorial"
Methods for php to prompt error messages:
Let php display detailed error messages without changing php.ini
error_reporting# There are many ways to use ##. Sometimes when debugging, some files cannot prompt detailed error information, just a 500 error, or nothing is displayed, which brings a lot of trouble to development.
ini_set('display_errors', true); error_reporting(E_ALL);
The above is the detailed content of How to prompt error message in php. For more information, please follow other related articles on the PHP Chinese website!