Someone
public text v1 · immutable<?php
// check to make sure a file has been submitted
if ($_FILES['userfile']=="none") {
// if not, give an error message and quit this script
echo "No file specified";
exit;
}
// send the file to a place on the server, and check to see if
// this has been done successfully.
if (move_uploaded_file($_FILES['userfile'], "\\uploads\\".$_FILES['userfile']['name'])) {
echo "Your file has been uploaded.";
} else {
echo "Could not upload file. <br>";
print_r($_FILES);
}
?>