<?php header("Content-type: text/html; charset=utf-8"); //空のファイルを作成 @touch("test.dat"); if(@rename("test.dat", "images/test.dat")){ echo "ファイルを移動しました!<br>"; } else{ echo "ファイルを移動できませんでした!<br>"; } ?>