Error Handling
| From: | Chuck Brockman | Date: | Fri, 09 Sep 2005 14:14:24 +0000 |
| Subject: | Error Handling | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-222086@lists.php.net to get a copy of this message | ||
What is a good way to capture errors that occur. I've tried the
following code in development, but it still spits out an error (Parse
error: syntax error, unexpected '}', expecting ',' or ';' in
X:\xxxx\xxxx\xxxx.php on line 7)
<?
// error handling test
try{
$test = 1;
echo $test1
}
catch (Exception $e) {
print "Exception caught\n";
}
?>
Thanks.