Page 1 of 1

move_uploaded_file() speed

Posted: Fri Aug 31, 2007 1:51 pm
by icesolid
Is move_uploaded_file(); the fastest way for uploading multiple files?

Posted: Fri Aug 31, 2007 2:00 pm
by Weirdan
just as fast as you can get

Posted: Fri Aug 31, 2007 3:01 pm
by icesolid
copy isn't faster?

Posted: Fri Aug 31, 2007 3:29 pm
by feyd
copy() and move_uploaded_file() are, for all practical purposes, the same, except move_uploaded_file() is specifically for uploaded files. copy() will incur an error when you are running in safe_mode, most likely.

Posted: Fri Aug 31, 2007 3:34 pm
by volka
Just for clarification: When your script calls copy() or move_uploaded_file() for anything that it finds in $_FILES the actual upload client->server already took place, i.e. the data is already on the server and php stored it in temporary files.