pklim101 2017-12-08 15:31:20 2979次浏览 1条评论 3 1 0

w.jpg

使用方法:

use \yii\base\ErrorException;
try {
	exec("curl http://xxx",$out,$retno);
	if(0 !== $retno){
	throw new ErrorException(var_export($out,true),0,1,__FILE__,__LINE__);
} catch (ErrorException $e){
	$error = "{$date} - {$e->getMessage()} - FILE:{$e->getFile()} - LINE:{$e->getLine()}\n";
}
觉得很赞
您需要登录后才可以评论。登录 | 立即注册