daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. I have two files. I am attempting to output the text within an uploaded file to a .php script that will echo the text
  2.  
  3.  
  4. ======================================856.html===============================
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <title></title>
  9. </head>
  10. <body>
  11. <form enctype="multipart/form-data" action="856parse.php" method="POST">
  12. <input name="upload_file" type="file" />
  13. <input type="submit" value="Send File" />
  14. </form>
  15. </body>
  16. </html>
  17. ======================================856.html===============================
  18.  
  19. ======================================856parse.php===============================
  20. <?php
  21.     //echo contents of file uploaded to input userfile
  22.     echo file_get_contents($_FILES['upload_file']['tmp_name']);
  23. ?>
  24. ======================================856parse.php===============================
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top