Guest User

Untitled

a guest
Mar 13th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  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===============================
Advertisement
Add Comment
Please, Sign In to add comment