upload_err_ok no error occurred. 上传成功 upload_err_ini_size the uploaded file exceeds the maximum value specified in the php教程.ini file. 超出最大上传尺寸 upload_err_form_size the uploaded file exceeds the maximum value specified by the
upload_err_ok no error occurred.
上传成功
upload_err_ini_size the uploaded file exceeds the maximum value specified in the php教程.ini file.
超出最大上传尺寸
upload_err_form_size the uploaded file exceeds the maximum value specified by the max_file_size hidden widget.
超出form设置最大上传尺寸
upload_err_partial the file upload was canceled and only part of the file was uploaded.
upload_err_nofile no file was uploaded.
未上传文件
a simple file upload form
action= method=post>
实例一
]
a file upload script
; print $imgstr;
}
}
?>
action= method=post>
文件上传实例二
$maxsize and !isset($error)) {
$error = error, file must be less than $maxsize bytes.
;
unlink($http_post_files['upload_file']['tmp_name']);
}
if (!isset($error)) {
move_uploaded_file($http_post_files['upload_file']['tmp_name'],
uploads/.$http_post_files['upload_file']['name']);
print thank you for your upload.;
exit;
}
else
{
echo ($error);
}
?>
method=post enctype=multipart/form-data>
choose a file to upload:
爱分享 ? php图片文件上传详细分析
http://www.ihref.com/read-7059.html
