echo "<script>alert('文件尺寸必须是:{$w} x {$h} ');history.go(-1);</script>";die; 转载于:https://www.cnblogs.com/shaoing/p/5357784.html