复制代码 代码如下: <?php //用户上传图片处理文件 if ((($_FILES[“file”][“type”] == “image/gif”)|| ($_FILES[“file”][“type”] == “image/jpeg”)|| ($_FILES[“file”][“type”] == “image/pjpeg”))&& ($_FILES[“file”][“size”] < 100000> 0){ echo “Return Code: ” . $_FIL