Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) {
  2.             $message = "The file ".  basename( $_FILES['file']['name']).
  3.             " has been uploaded";
  4.         } else{
  5.             $message = "There was an error uploading the file, please try again!";
  6.         }
  7.     }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement