pastebin

Paste Search Dynamic
Recent pastes
uploaddir
  1. <?php
  2. $uploaddir = "";
  3. $uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
  4.  
  5. if (isset($_FILES['userfile']['name'])) {
  6.         if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
  7.                 echo "The file ". basename($_FILES['userfile']['name']) ." has been uploaded";
  8.         } else {
  9.                 echo "There was an error uploading the file. please try again!";
  10.         }
  11. }
  12. ?>
Parsed in 0.031 seconds