Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have two files. I am attempting to output the text within an uploaded file to a .php script that will echo the text
- ======================================856.html===============================
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- </head>
- <body>
- <form enctype="multipart/form-data" action="856parse.php" method="POST">
- <input name="upload_file" type="file" />
- <input type="submit" value="Send File" />
- </form>
- </body>
- </html>
- ======================================856.html===============================
- ======================================856parse.php===============================
- <?php
- //echo contents of file uploaded to input userfile
- echo file_get_contents($_FILES['upload_file']['tmp_name']);
- ?>
- ======================================856parse.php===============================
Advertisement
Add Comment
Please, Sign In to add comment