Home > Article > Backend Development > How to close php.ini warning
How to turn off php.ini warning: first find and open the php.ini configuration file; then modify the content to "display_errors=Off"; finally save the modification.
The operating environment of this article: Windows 7 system, PHP version 7.1, DELL G3 computer.
php close warning warning
When using Ajax cross-domain request, the returned json format is incorrect. After carefully checking the json return data, I found that there are some warnings before the json data. message, so I went to php.ini to turn off the warning message:
Recommended configuration for production environment
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT display_errors = Off
[Recommended learning: PHP video tutorial]
The above is the detailed content of How to close php.ini warning. For more information, please follow other related articles on the PHP Chinese website!