PHP 输出js 返回上一页

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