Home > Backend Development > PHP Problem > How to remove warning in php

How to remove warning in php

藏色散人
Release: 2023-03-09 08:10:02
Original
2480 people have browsed it

php method to remove warnings: first open the PHP page file; then add "ini_set("display_errors","Off");" to the beginning of the php page.

How to remove warning in php

The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer

php turns off the warning warning

You may encounter warnings during the encoding process. When you finally put it into use, if you want to turn off the warning

, add

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

at the beginning of the php page[ Recommended learning: PHP video tutorial

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