Method 1: Add @ before a function with a possible error, and then add ordie () such as @ mysql_connect (...) ordie (DatabaseConnectError) Method 2: Edit php. ini, find display_errors, and change the value to off. (That is, set the value to ON after removing it.) method 3: Before the php script
Method 1: Add @ before a function with a possible error, and then ordie ("") for example: @ mysql_connect (...) ordie ("DatabaseConnectError") Method 2: Edit php. ini, find "display_errors =", and change the value after = to "off. (That is, set the value to ON after removing it.) method 3: Before the php script
Block PHP error messages
Method 1:Add @ before a function that may have an error, and then or die ("")
For example:
@ Mysql_connect (...) or die ("Database Connect Error ")
Method 2:Edit php. ini, find "display_errors =", and change the value after "=" to "off. (That is, remove the one before it, and set the value to ON)
Method 3:Add error_reporting (0) to the php script to block all error messages.
Here, error_reporting configures the error information return level.
Syntax: int error_reporting (int [level]);
Return Value: integer
Function types: PHP system functions