$file_array) { echo "Path: ".$file_array["tmp_name"]."
\n"; //The old file path echo "Name: ".$file_array["name"]."
\n"; //The name of the file echo "Type: ".$file_array["type"]."
\n"; //The type of the file echo "Size: ".$file_array["size"]." bytes.
\n"; //The size of the file (in bytes) if (is_uploaded_file($file_array["tmp_name"])) { move_uploaded_file($file_array["tmp_name"], "$file_dir/".$file_array["name"]) or die ("The blasted file wouldn't move. Try again."); echo "The file moved! Hurrah!
"; } } ?>