title: PHP Read file from HTML input file
body: <p>How can I read the content of an XML file from an HTML form with PHP without uploading the file? This is my form:</p>
  
  <pre><code>&lt;form action="readxml.php" method="post" enctype="multipart/form-data"&gt;
    &lt;label for="file"&gt;Filename:&lt;/label&gt;
    &lt;input type="file" name="file" id="file"&gt;&lt;br&gt;
    &lt;input type="submit" name="submit" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I want to process the XML that the user selects using SimpleXML to store its values in a database, thus I don't need to actually upload the file.</p>
  
  <p>Thanks!</p>