在PHP上传文件[重复]

This question already has an answer here:

how i can upload single file to a multiple location or folder

i use move_uploaded_file() two times but it work only one time

</div>

You are working on a normal file system, so if you have an path to your file, just use copy.

You can use

copy($source_file, $destination_file);

Where $source_file is the file you have just uploaded's path and $destination_file is where you want the copy to reside.