Miscellany
public php v1 · immutable$currentdir=getcwd();$target_path = $currentdir . "/" . basename($_FILES['file']['name']);echo "Target: $target_path<br>";$temploc=$_FILES['file']['tmp_name'];echo "Temploc: $temploc<br>";if (move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['file']['name']). " has been uploaded<br><br>";} else { echo "There was an error uploading the file, please try again!<br><br>";}