Error message levels
am 20.02.2006 16:04:07 von Sheldon Glickler
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 ''. 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
Re: Error message levels
am 20.02.2006 16:10:50 von Sheldon Glickler
The settings are:
mssql.min_error_severity 10
mssql.min_message_severity 10
error_reporting 2047
"Sheldon Glickler" 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 ''. 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
>
Re: Error message levels
am 20.02.2006 16:10:50 von Sheldon Glickler
The settings are:
mssql.min_error_severity 10
mssql.min_message_severity 10
error_reporting 2047
"Sheldon Glickler" 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 ''. 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
>
Re: Error message levels
am 20.02.2006 17:06:28 von jeanphilippe.tessier
The password / username is correct ?
Re: Error message levels
am 20.02.2006 17:06:28 von jeanphilippe.tessier
The password / username is correct ?
Re: Error message levels
am 20.02.2006 18:31:33 von samudasu
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.
Re: Error message levels
am 20.02.2006 18:31:33 von samudasu
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.
Re: Error message levels
am 20.02.2006 18:41:09 von Sheldon Glickler
Thank you. I will tell him that.
"samudasu" 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.
>
Re: Error message levels
am 20.02.2006 18:41:09 von Sheldon Glickler
Thank you. I will tell him that.
"samudasu" 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.
>
Re: Error message levels
am 21.02.2006 12:31:52 von swar30
You can select the level of error reporting with this function
error_reporting();
Re: Error message levels
am 21.02.2006 12:31:52 von swar30
You can select the level of error reporting with this function
error_reporting();