How To Turn Off Warning Messages during PHP Execution?
Submitted by: AdministratorIf 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.
Submitted by: Administrator
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.
Submitted by: Administrator
Read Online MS SQL Server Job Interview Questions And Answers
Top MS SQL Server Questions
☺ | How to create new table with "CREATE TABLE" statements? |
☺ | PHP MSSQL - How To Delete Existing Rows in a Table? |
☺ | How To Execute the Cursor Queries with "OPEN" Statements? |
☺ | What Happens If Strings Are Casted into Wrong Code Pages in MS SQL Server? |
☺ | Can You Roll Back the DDL Statement in a Trigger? |
Top Databases Programming Categories
☺ | RDBMS Interview Questions. |
☺ | SQL Interview Questions. |
☺ | SSRS Interview Questions. |
☺ | Database Administrator (DBA) Interview Questions. |
☺ | Sybase Interview Questions. |