Home  >  Article  >  Backend Development  >  What is the method to close notice in php

What is the method to close notice in php

王林
王林Original
2020-11-06 13:42:202437browse

The way to close notice in php is: first enter the php installation directory; then open the php.ini configuration file; and finally modify the configuration [error_reporting=E_ALL & ~E_NOTICE].

What is the method to close notice in php

The specific method is as follows:

(Learning video recommendation: java video tutorial)

1 , directly change error_reporting

in the php.ini file as follows:

error_reporting=E_ALL & ~E_NOTICE

2. Add the following code to the page where you want to disable notice error prompts:

error_reporting(E_ALL^E_NOTICE);

or

error_reporting(0);

Related recommendations: php training

The above is the detailed content of What is the method to close notice in php. 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