php处理异常
解决方法:
set_error_handler(
create_function(
'$severity, $message, $file, $line',
'throw new ErrorException($message, $severity, $severity, $file, $line);'
)
);
try {
$ipinfo=file_get_contents('http://ip.taobao.com/service/getIpInfo.php');
}
catch (Exception $e) {
echo $e->getMessage();
}
restore_error_handler();
向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti