Hi I posted a question here about uploading files. The person suggested that I should use $HTTP_POST_FILES. Today, I read an article, and the person uses copy() to upload the file
So does anyone know which way is more efficient?
Thanks in advance
Use both.
$file = $HTTP_POST_FILES["myfile"]["tmp_name"]; if(is_uploaded_file($file)) { copy($file, "/path/to/save/to"); } else { print("No file uploaded."); }
-- Jason