<?php
$target_path = "./" . 'data.xml';
if (move_uploaded_file('data.xml', $target_path)) {
echo "The file has been uploaded";
} else {
echo "There was an error uploading the file, please try again!";
}
?>
上記のPHPスクリプトは機能していないようです。このリンクにHTTPPOSTリクエストを送信してみました。のBOOLEANNOを取得することになりmove_uploaded_file
、yesはエラーがあると言います。
ここで何が悪かったのだろうか。