For Programmers: Free Programming Magazines  


Home > Archive > PHP SQL > February 2006 > Error message levels









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

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();

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com