Re: note 8469 added to Configuration

From: Date: Thu, 14 Sep 2000 23:34:05 +0000
Subject: Re: note 8469 added to Configuration
Groups: php.notes 
Request: Send a blank email to php-notes+get-4982@lists.php.net to get a copy of this message
See trigger_error, set_error_handler, and the "Error handling" section and functions. --- isanhaji@insight.com wrote: > Hi there php experts; > > I'm wondering how can i handle exceptions like java > [try{...} catch{}] way. > > My goal is to take a block of instruction and catch > any error at the end. > This helps me to have one condition for one block > that i can determine, rather than "polluating" code > with multiple if then else...... > > here's a deseperate attempt, the problem is that the > execution continue after ther error; > > error_reporting(0); > > $t1 = 123; > $t2 = 0; > $total = $t1/$t2; > //.... > > if ($php_errormsg) > echo "error = $php_errormsg"; > > thanks > > http://www.php.net/manual/configuration.php > > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-notes-unsubscribe@lists.php.net > For additional commands, e-mail: > php-notes-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > ===== --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/

« previous php.notes (#4982) next »