| Author |
Error message levels
|
|
| Sheldon Glickler 2006-02-20, 6:57 pm |
| My message levels are turned up too high and the one that installed php for
me is new to it. I need to have them turned down some. I get the following
message from a simple query:
Warning: mssql_pconnect() [function.mssql-pconnect]: message: Cannot open
user default database '<ID>'. Using master database instead. (severity 11)
and then it does everything correctly.
What do I tell him about how to turn the levels down so that this doesn't
show (as well as the one that there already is a session_start() ).
Shelly
| |
| Sheldon Glickler 2006-02-20, 6:57 pm |
| The settings are:
mssql.min_error_severity 10
mssql.min_message_severity 10
error_reporting 2047
"Sheldon Glickler" <glicklers@bellsouth.net> wrote in message
news:QQkKf.3815$Pv1.1689@bignews6.bellsouth.net...
> My message levels are turned up too high and the one that installed php
> for me is new to it. I need to have them turned down some. I get the
> following message from a simple query:
>
> Warning: mssql_pconnect() [function.mssql-pconnect]: message: Cannot open
> user default database '<ID>'. Using master database instead. (severity 11)
>
> and then it does everything correctly.
>
> What do I tell him about how to turn the levels down so that this doesn't
> show (as well as the one that there already is a session_start() ).
>
> Shelly
>
| |
| jeanphilippe.tessier@gmail.com 2006-02-20, 6:57 pm |
| The password / username is correct ?
| |
| samudasu 2006-02-20, 6:57 pm |
| If this is a production system then you shouldn't be displaying error
messages to your users. Instead have the error messages written to an
error log.
Tell him to set display_errors to 0 in the php.ini file and log_errors
to 1.
| |
| Sheldon Glickler 2006-02-20, 6:57 pm |
| Thank you. I will tell him that.
"samudasu" <samudasu@hotmail.com> wrote in message
news:1140456693.205623.242250@g47g2000cwa.googlegroups.com...
> If this is a production system then you shouldn't be displaying error
> messages to your users. Instead have the error messages written to an
> error log.
>
> Tell him to set display_errors to 0 in the php.ini file and log_errors
> to 1.
>
| |
| swar30@gmail.com 2006-02-21, 7:56 am |
| You can select the level of error reporting with this function
error_reporting();
|
|
|
|