無法在PHP中上傳文件,用不同的extention名無法在PHP中上傳文件,用不同的extention名
echo basename($_FILES['uploadedfile']['name']);
$target_path = $target_path . basename($_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
// header("Location: EHP_Configuration.html");
} else{
// header("Location: EHP_Configuration.html");
echo "Notdone";
}
我已經驗證了回聲它顯示正確的文件名
但move_upload給我「Notdone」
Regards
使用工具欄上的代碼按鈕,您可以格式化你的代碼? – LiamB 2009-11-02 12:00:51
@新 - 這是一個比你最後一次去問問題更好的方式!歡迎來到stackoverflow! – 2009-11-02 12:06:29