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

How to turn off notice warning in phpini

angryTom
Release: 2023-02-27 09:40:02
Original
3115 people have browsed it

How to turn off notice warning in phpini

How to turn off notice warning in phpini

1. Change error_reporting## in the php.ini file

#Change 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

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

<?php error_reporting(E_ALL^E_NOTICE); ?>
Copy after login

or


error_reporting(0);
Copy after login

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!

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