Home > Backend Development > PHP Problem > What is the method to turn off page warning in php

What is the method to turn off page warning in php

王林
Release: 2023-03-07 15:18:01
Original
1756 people have browsed it

php method to turn off page warnings is: first open the php.ini file; then modify the properties [display_errors = Off error_reporting = E_ALL].

What is the method to turn off page warning in php

There are two methods, namely:

(Learning video recommendation: java video tutorial)

1. Modify the following attributes in the php.ini file

display_errors = Off
error_reporting = E_ALL
Copy after login

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 What is the method to turn off page warning in php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
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