You are here: Re: how to hide an error message « PHP SQL « IT news, forums, messages
Re: how to hide an error message

Posted by Anne Bos on 11/01/06 23:05

On Wed, 01 Nov 2006 16:46:08 -0500 wrote IchBin <weconsul@ptd.net>:

>peter wrote:
>>> Somewhere in my homepage I offer acces to a database. Using php all
>>> works fine, mostly. I'm using die() with an appropriate message in
>>> case the server is down or something is wrong. So far, so good.
>>> However, if there is something wrong I always get, prior to my own
>>> message: Warning (and a text). This is very well and usefulwhen
>>> preparing thins like this. But not always. I know there is a way to
>>> hide these warnings, but I forgot. (I remember it's very simple too.)
>>> Can anyone tell me?
>>
>> you can suppress an error message by placing an @ in front of the function
>> for example @mysql_connect()
>>
>>
>
>Also if you want to hide message but actually do something based on a
>particular error message you can look at PHP manual, Exception Handling
>in Chapter 10 for Try() Catch() processing...

That's it, yesssss. Many thanks.

 

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

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