PHP 5 try catch block

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Has anyone figured out how to catch fatal errors?  Something like a
script like this with an obvivous parse error.
 
<?php
try {
   bar = foo;
} catch (Exception $exception) {
   echo "hello";
}
?>

I want to know how to catch any klind of error so I can deal with it
gracefully instead of crashing the CGI.
 
 
Charles Killmer
Netgain Technology
CharlesK@xxxxxxxxxxxxxxxxxxxxx
Office: (320) 251-4700 ext 107
 

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux