You can write your own error handlers using set_error_handler(). Then, 
depending on the error code, you can decide whether you should display the 
error message, email it to you, log it, whatever.

If you just want to hide the error message, there's nothing wrong with using 


Gert Mellak wrote:

>> $db_connect = mysql_connect($db_server, $db_user, $db_pass) or
> die('Couldn't
>> connect to database');
>> $db_open = mysql_select_db($db_name, $db_connect) or die('Couldn't select
>> database');
> well, I tried this out and if the mysql-server is down, I get the
> "Warning: Unable to connect to mysql-server"-stuff.
> The only way I've found was to connect by @mysql_connect - but that's not
> the fine style, yeah?
> Gert.

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to