//改成这样真的可以了
$filename = '/data/webroot/usercode/resource/test.txt';
$filename = '/data/webroot/usercode/resource/test.txt';
2016-02-22
try {
throw new Exception('wrong');
} catch(Exception $ex) {
echo 'Error:'.$ex->getMessage().'<br>';
echo $ex->getTraceAsString().'<br>';
}
抛出异常,输出定义异常信息
throw new Exception('wrong');
} catch(Exception $ex) {
echo 'Error:'.$ex->getMessage().'<br>';
echo $ex->getTraceAsString().'<br>';
}
抛出异常,输出定义异常信息
2016-02-20