How to remove warning prompt in php

王林
Release: 2023-03-04 16:28:01
Original
4872 people have browsed it

php method to remove the warning prompt: 1. Open the php.ini configuration file; 2. Edit the configuration [display_errors = Off]; 3. Edit the configuration [error_reporting = E_ALL].

How to remove warning prompt in php

How to turn off PHP’s warning prompt:

(Recommended tutorial: php graphic tutorial)

Method 1:

Open the php.ini file and modify the following properties

display_errors = Off
error_reporting = E_ALL
Copy after login

(Video tutorial recommended: php video tutorial)

Method Two:

Write at the beginning of the php file:

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

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