title: Import and display excel file in PHP from another directory. I want to read excel and display its conten
body: <p>I want to import an excel file in PHP from another directory. I want to read excel and display its content but its in another diretory and I'm getting an error</p>
  
  <pre><code>Notice: Undefined index: file in F:\Xampp\htdocs\upload.php on line 3
  </code></pre>
  
  <h1>import.php</h1>
  
  <pre><code>&lt;form action="upload.php" &gt;
  &lt;input name="file" type="file"&gt;
  &lt;input name="submit" type="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <h1>upload.php</h1>
  
  <pre><code>&lt;?php 
  $uploadedStatus = 0; 
  echo $_FILES["file"]["name"];
  ?&gt;
  </code></pre>