|
Posted by IchBin on 11/01/06 21:46
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...
--
Thanks in Advance... http://ichbin.9999mb.com
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
______________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
[Back to original message]
|