Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
あるフォルダーから別のフォルダーに目的の名前でファイルをコピーしようとしています。対処のために私が使用した
copy($oldfile, $newfile);
もう1つ、古いフォルダーファイルも削除する必要があります。名前を変更するにはどうすればよいですか
名前の変更を使用: oldname を newname に名前変更し、必要に応じてディレクトリ間で移動しようとします。newname が存在する場合は上書きされます。
rename($oldfile, $newfile);
http://php.net/manual/en/function.rename.php
フィギュアを挿入するときは?