PHP copy problem with uploaded file
Posted
by ookla
on Stack Overflow
See other posts from Stack Overflow
or by ookla
Published on 2010-03-11T19:17:35Z
Indexed on
2010/03/11
19:19 UTC
Read the original article
Hit count: 231
php
|fileupload
Hi there, how can I copy two times the same file? I'm trying to do something like this:
copy($file['tmp_name'], $folder."1.jpg");
copy($file['tmp_name'], $folder."2.jpg");
copy($file['tmp_name'], $folder."3.jpg");
And how many time does temp files has before it's destroyed by the server?
I try using move_uploaded_file also, but I can't make it work. I want to generate 2 thumbs from an uploaded file.
Some help?
Thanks,
© Stack Overflow or respective owner