![](' .$img_path. ')'; }else{ echo '图片上传失败
'; } }else{ //文件类型错误 echo '图片上传类型错误'; } }else{ //文件错误 echo '文件错误'; }