MS SQL Server Concepts and Programming Question: Download MS SQL Server PDF

How To Turn Off Warning Messages during PHP Execution?

Tweet Share WhatsApp

Answer:

If don't want see warning messages generated from the PHP engine when executing PHP scripts, you can change the error_reporting setting in the php.ini configuration file.

Open php.ini and change the following lines:

;error_reporting = E_ALL & ~E_NOTICE
error_reporting = E_ALL & ~E_WARNING

Now run the script in the previous tutorial again, you will not see the warning messages from the PHP engine:

Execution failed:
State: S0002
Error: [Microsoft][ODBC SQL Server Driver][SQL Server]
Cannot drop the table 'GlobalGuideLine', because it does not
exist or you do not have permission.

Download MS SQL Server PDF Read All 394 MS SQL Server Questions
Previous QuestionNext Question
How To Retrieve Error Messages using odbc_errormsg()?How To Receive Returning Result from a Query?