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

王林
王林Original
2020-11-10 14:21:081755browse

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

2. Write at the beginning of the php file:

<?php
    error_reporting(0);
?>

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!

Statement:
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