How to close notice in php

王林
Release: 2023-03-07 07:26:01
Original
2244 people have browsed it

How to close notice in php: First use a text editor to open the php.ini configuration file; then modify the configuration [error_reporting=E_ALL & ~E_NOTICE].

How to close notice in php

The method is as follows:

(Recommended tutorial: php video tutorial)

1. Change error_reporting in the php.ini file to:

error_reporting=E_ALL & ~E_NOTICE
Copy after login

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

when you want to ban the notice Add the following code to the error page:

error_reporting(E_ALL^E_NOTICE);
Copy after login

or

error_reporting(0);
Copy after login

Related recommendations: php training

The above is the detailed content of How to close notice in php. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!