Answers

Question and Answer:

  Home  Junior PHP Developer

⟩ Write down the code for save an uploaded file using php?

if ($_FILES["file"]["error"] == 0)

{

move_uploaded_file($_FILES["file"]["tmp_name"],

"upload/" . $_FILES["file"]["name"]);

echo "Stored in: " . "upload/" . $_FILES["file"]["name"];

}

 117 views

More Questions for you: