Turn off php warning prompts

王林
Release: 2023-03-01 07:48:02
Original
2819 people have browsed it

Turn off php warning prompts

How to turn off the php warning prompt:

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

For more related content, please pay attention to php中文网.

The above is the detailed content of Turn off php warning prompts. 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