|
Posted by Paul Furman on 03/22/06 23:26
Paul Furman wrote:
> What is the proper way to turn off error reporting? I'm on a shared
> server so...
>
> "Note: Although display_errors may be set at runtime (with ini_set ()),
> it won't have any affect if the script has fatal errors. This is because
> the desired runtime action does not get executed."
>
> ... has me confused if this will really work. Sorry I'm rusty on this.
>
> "To set at runtime, use the error_reporting(). See also the
> display_errors directive."
>
> I don't mind if visitors get some error messages when there is a problem
> but when the database goes down for a moment they get the login &
> password that failed <grin>.
OK so I just inserted this line:
ini_set (display_errors, 0)
However I still get mySQL syntax errors, the most obvious problem before
was with database connection errors when the database server went down
for maintenance so this concerns me. I'm not sure if that was SQL or PHP
error messages. Can I turn off mySQL errors?
Navigation:
[Reply to this message]
|