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

How to turn off warning in php

王林
Release: 2023-03-06 20:40:02
Original
3953 people have browsed it

How to turn off warning in php: 1. Open the php.ini configuration file; 2. Modify [display_errors = Off]; 3. Modify [error_reporting = E_ALL12].

How to turn off warning in php

How to turn off php warning prompt:

(Video tutorial recommendation: php video tutorial)

Method 1:

Modify the following properties in the php.ini file and modify it

display_errors = Off
error_reporting = E_ALL12
Copy after login

Method 2:

Write at the beginning of the php file:

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

Related recommendations: php training

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