title: PHP Open PDF file in adobe reader
body: <p>I Have alot of PDF files saved on the network drive. All the pdf files are linked to a task. I want to open them in reader instead of downloading it or open in a chrome tab.</p>
  
  <p>I get the right PDF files with the right task using this:</p>
  
  <pre><code>echo "&lt;b&gt;Documenten: &lt;/b&gt;&lt;br&gt;"; 
      $documentenwo = "SELECT * FROM DOCUMENT INNER JOIN DOCUMENT_REF_WO ON DOCUMENT.ID = DOCUMENT_REF_WO.DOCUMENT_ID WHERE DOCUMENT_REF_WO.WORKORDER_BASE_ID='".$base."' AND DOCUMENT_REF_WO.WORKORDER_LOT_ID='".$lot."' AND DOCUMENT_REF_WO.WORKORDER_SPLIT_ID='".$split."' AND ID NOT LIKE '%.stp' AND ID NOT LIKE '%.dxf'";   
      $STH = $pdo-&gt;prepare($documentenwo);
      $STH-&gt;execute();
      while($row = $STH-&gt;fetch(PDO::FETCH_ASSOC)){ 
          $file_patch = $row["DOC_FILE_PATH"];
          if(!empty(trim($file_patch))){
              $file_patch = trim($file_patch);
              $file_patch = str_replace("M:", "file://local/data", $file_patch);
          }
          $id = $row["ID"];
          $path = $file_patch."/".$id;   
          echo "&lt;p&gt;&lt;a href=".$file_patch."/".$id." target='_blank'&gt;&lt;i class='fa fa-download'&gt;&lt;/i&gt; ".$row["ID"]."&lt;/a&gt;&lt;/p&gt;";          
      }
  </code></pre>
  
  <p>When I open a pdf file, It will be openend in chrome pdf viewer.</p>
  
  <p>I want to open it in adobe reader from its original location. Not download it. Just open the file from it's original location.</p>
  
  <p>Why?</p>
  
  <p>When someone have a remark in 1 of the documents, it will be saved at its original location, so everyone else can see his remark inside the pdf file.</p>