How to hide warning in php

藏色散人
Release: 2023-03-15 06:56:02
Original
2927 people have browsed it

How to hide warnings in php: 1. Modify the properties in the php.ini file to "display_errors = Off error_reporting = E_ALL"; 2. Write "error_reporting(0)" at the beginning of the php file.

How to hide warning in php

The operating environment of this article: Windows 7 system, PHP version 7.1, DELL G3 computer

How to hide the warning in php?

How to hide warning prompts in php

Method 1:

Modify the following properties in the php.ini file

display_errors = Off
error_reporting = E_ALL
Copy after login

Method 2:

Write at the beginning of the php file:

<?php error_reporting(0); ?>
Copy after login

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to hide warning 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