What are the basic PHP functions needed for handling file uploads?

When handling file uploads in PHP, you will need to use the following basic functions: `move_uploaded_file()` to move the uploaded file to a specific location on the server, `$_FILES[]` to access information about the uploaded file, and `is_uploaded_file()` to verify that the file was indeed uploaded through an HTTP POST.

<?php
$target_dir = "uploads/";
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);

if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) {
    echo "The file ". basename( $_FILES["fileToUpload"]["name"]). " has been uploaded.";
} else {
    echo "Sorry, there was an error uploading your file.";
}
?>