How to enable error prompts in php7: 1. Modify the php.ini file and enable error prompts; 2. Modify the httpd.conf file and add "php_flag display_errors on" in the last line; 3. Restart the Apache service And php service is enough.
The operating environment of this article: windows7 system, PHP7.3 version, DELL G3 computer
How to enable error prompts in php7?
PHP7.3 turns on error reminder
##The server php version has been upgraded When I arrived at php7.3, I found that there were no error prompts during the test. I searched for information online and successfully turned on the error reminder. Operation process Remove the error_reporting comment, and set the value to E_ALL | E_STRICT, as follows
display_errors=On error_reporting=E_ALL | E_STRICT
php_flag display_errors on php_value error_reporting 2039
I hope everyone can go further and further on the road of programming.
PHP video tutorial]
The above is the detailed content of How to enable error prompts in php7. For more information, please follow other related articles on the PHP Chinese website!