<?php $uploaddir = './files/'; //上傳目錄 if (is_uploaded_file($_FILES['file']['tmp_name'])) { $uploadfile = $uploaddir.basename($_FILES['file']['name']); if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile)) { echo "上傳成功"; } } else { echo "上傳失敗"; } ?>
酷米 © All Rights Reserved.