开发者

upload file in php [duplicate]

This question already has answers here: PHP: how do I copy a temp file upload to multiple places? (4 answers) 开发者_JAVA百科 Closed 8 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜