Re: note 8469 added to Configuration

From: Date: Wed, 13 Sep 2000 15:47:22 +0000
Subject: Re: note 8469 added to Configuration
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-4884@lists.php.net to get a copy of this message
Please do not post support questions to the manual notes. Instead, send your questions to php-general@lists.php.net For more information on how to get support for PHP, visit www.php.net/support.php Note that a try...catch construct is being currently being developed for PHP. - Zak At 03:31 AM 9/14/00 +0000, 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


« previous php.notes (#4884) next »