Home >Backend Development >PHP Problem >How to close php.ini warning

How to close php.ini warning

藏色散人
藏色散人Original
2021-03-03 10:23:002987browse

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.

How to close php.ini warning

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!

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