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

How to close php.ini warning

藏色散人
Release: 2023-03-08 12:20:01
Original
2988 people have browsed it

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
Copy after login

[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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template