复制代码 代码如下:<?php if($_FILES[‘myfile’][‘name’] != ”) { if($_FILES[‘myfile’][‘error’] > 0) { echo “错误状态:” . $_FILES[‘myfile’][‘error’]; } else { move_uploaded_file($_FILES[‘myfile’][‘tmp_name’] , “uploads/” . $FILES[‘myfile’][‘name’]); echo “[removed]alert(上传成功!);[remove