【php开源代码栏目提醒】:网学会员,鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“upload_file_m.php”一文,供大家参考学习!
<?php
print "<pre>";
$store_dir = 'd:\\upload\\';
foreach ($_FILES["sendfile"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
$uploadfile_tmp = $_FILES['sendfile']['tmp_name'][$key];
$uploadfile = "$store_dir". basename($_FILES['sendfile']["name"][$key]);
move_uploaded_file( $uploadfile_tmp, $uploadfile );
}
}
print "<pre>";
?>