RE: [PHP] Re: Error handling and the usage of "@"

From: Date: Fri, 07 Sep 2001 19:33:22 +0000
Subject: RE: [PHP] Re: Error handling and the usage of "@"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66453@lists.php.net to get a copy of this message
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:hugh_bothwell@hotmail.com] Sent: 07 September 2001 20:32 To: php-general@lists.php.net Subject: [PHP] Re: Error handling and the usage of "@" "Seb Frost" <seb@raceshoot.com> wrote in message news:BAELJLBLJPDMDLJLPGGMCEAPCIAA.seb@raceshoot.com... > 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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net --- 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

« previous php.general (#66453) next »