title: PHP readfile error
body: <p>I am getting an error. I am trying to read an attachment. It does work perfectly on most files but on few I get this error. The files have the same format and the location it is trying to read from is correct. I have tested it on windows explorer. This is way i am reading it:</p>
  
  <pre><code>        header('Content-Description: File Transfer'); 
          header('Content-Type: application/octet-stream'); 
          header('Content-Disposition: attachment; filename="' . $filename .'"'); 
          header('Content-Transfer-Encoding: binary'); 
          header('Expires: 0'); 
          header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); 
          header('Pragma: public'); 
          header('Content-Length: ' . filesize($attachment_location)); 
          ob_clean(); 
          flush(); 
          readfile($attachment_location);     
          exit();  
  </code></pre>
  
  <p>This is the error I get</p>
  
  <p>Warning: <code>readfile(C:\Users\Public\asdgasd\4sf3\Suppliers\saf342\Files\Revit\2016\Seinätikas.rfa): failed to open stream: No such file or directory in C:\xampp\htdocs\web\downloadattachment.php on line 58</code>                              </p>