Home > Backend Development > PHP Problem > How to eliminate warnings in php

How to eliminate warnings in php

藏色散人
Release: 2023-03-08 08:44:01
Original
2464 people have browsed it

php method to eliminate warnings: first open the corresponding PHP page; then add the statement "error_reporting(E_ERROR);ini_set("display_errors","Off");" to the beginning of the PHP page to eliminate it warn.

How to eliminate warnings in php

#The operating environment of this article: Windows7 system, PHP7.1, Dell G3 computer.

php turn off warning warning

You may encounter warnings during the encoding process. When it is finally put into use, if you want to turn off the warning, go to the beginning of the php page Add

error_reporting(E_ERROR); 
ini_set("display_errors","Off");
Copy after login

to the part [Recommended: PHP video tutorial]

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