Home>Article>Backend Development> How to turn off notice warning in phpini

How to turn off notice warning in phpini

angryTom
angryTom Original
2019-10-18 11:15:00 3018browse

How to turn off notice warning in phpini

How to turn off notice warning in phpini

1. Changeerror_reporting## in the php.ini file

#Change to:

error_reporting=E_ALL & ~E_NOTICE

2. If you cannot operate the php.ini file, you can use the following method

to add it to the page where you want to disable notice error prompts The following code:

or


error_reporting(0);

For more PHP related knowledge, please visit

PHP Chinese website!

The above is the detailed content of How to turn off notice warning in phpini. 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