upload file in php [duplicate]
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
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.
use copy
see this link http://us2.php.net/manual/en/function.copy.php
You are working on a normal file system, so if you have an path to your file, just use copy.
精彩评论