title: Getting file name and file directory in PHP application by selecting file
body: <p>I'm currently making a PHP application, where I want to insert data from a excel sheet in a MySQL database. I've done that so far, but the problem now is, that the excel file needs to be in the root directory. What I'm looking for is a button where I can browse the file, and from which i get the name and the directory. Any suggestions?</p>
  
  <p>currently I just use <code>$fileName="gefertigt.xlsx";</code></p>
  
  <p>I tried it with JavaScript (from <a href="http://www.html5rocks.com/en/tutorials/file/dndfiles/" rel="nofollow">this</a> tutorial), but since I'm a beginner it's to difficult for me.</p>