So I should chuck it on all mysql functions? Done. Don't ya just love
search and replacing a whole directory of scripts :-) Still works fine
too - bonus!
- seb
-----Original Message-----
From: Hugh Bothwell [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 20:32
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Error handling and the usage of "@"
"Seb Frost" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Could someone give me an example of the sort of error handling you put in
> your php scripts? Cheers. Should I be preceding every command with @?
> Anything where this would be harmful? Just looking for some pointers
really
In general, stuff that (a) might fail in normal
use and (b) prints an unwanted error message.
This usually deals with calls to external
programs, stuff that sometimes be down.
In my case, this is pretty much restricted to
mail() and the mysql_xx functions.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]