Get the App
SLTechnology News&Howtos  ›  Development  › 

What does warning mean in php

Shulou Source: shulou.com Published: 2022-06-01 18:38:39 09月30日 Update

This article mainly introduces the relevant knowledge of "what does warning mean in php". The editor shows you the operation process through an actual case. The operation method is simple and fast, and it is practical. I hope this article "what does warning mean in php" can help you solve the problem.

In php, warning means "warning", is an error level, is non-fatal, and does not affect subsequent code execution. The warning warning error indicates that during execution, PHP finds something unreasonable in the program and prompts a warning message, but the program continues to execute.

Operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer

Warning is an error level for PHP and is non-fatal, that is, subsequent scripts can still run normally after the warning occurs.

Indicates that during execution, PHP finds something unreasonable in the program and prompts a warning message, but the program continues to execute.

Common reasons for WARNING error reporting in PHP:

Cannot connect to the database

A new PHP document will generate a WARNING warning error because the user name and password of the connection data are incorrect

WARNING-level warning errors are non-fatal and do not affect subsequent code execution

Use the error_reporting () function to turn off warning warning errors, for example:

Error_reporting (E _ all ^ E _ WARNING)

Once set, the PHP script ignores this error, and the subsequent code executes normally

This is the end of the content about "what does warning mean in php"? thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Tags: Meaning program error code right and wrong knowledge level process irrationality place data script industry message influence prompt different practical content function Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei MySQL Linux NVidia macOS