You are here: Re: error reporting « PHP Programming Language « IT news, forums, messages
Re: error reporting

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация