Re: Error handling and the usage of "@"

From: Date: Fri, 07 Sep 2001 19:31:48 +0000
Subject: Re: Error handling and the usage of "@"
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-66452@lists.php.net to get a copy of this message
"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.

« previous php.general (#66452) next »