Is it possible to achieve the following:
- Allow a user to upload a text file via HTML form (.txt)
- Use the contents of that file in a PHP script to temporarily access the information
- Delete any traces of the temporary file after the script has processed?
Think of it as uploading a word document via html form, have a php script as basic as:
<?php
$document = file_get_contents("uploaded_document.txt");
echo $document;
$document = "";
?>
Thank you ahead of time!