<? php
//where the file is going to be placed
$target_path = "uploads/";
//Add the original filename to our path. Result is
"uploads/file.extension"/
$target_path = $target_path . basename($_FILES['uploadedfile']['name']);
//This is how we will get the temporay file...
$_FILES['uploadedfile']['tmp_name'];
$target_path = "uploads/";
$target_path = $target_path . basename($_FILES['uploadedfile']['name']);
if(move_uploaded_file($FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file". basename($FILES['uploadedfile']['name']). "has been uploaded";
} else{
echo "There was an error uploading the file, please try again!";
}
?>
Ok, question 2, BTW thank you for all the help on the last question i had. but now I am geting this, can soem on elook closely to this code am I missing any thing,, open codes or what.. this is get fun now 🙂