title: Prevent auto download PDF file using PHP
body: <p>I have to show PDF file on my website so I have done coding using <code>&lt;iframe&gt;</code> but the issue is when I open my website, PDF file starts downloading instead of view.
  Here is my code</p>
  
  <pre><code>&lt;?php
   $pdf = 'http://'. $_SERVER['SERVER_NAME']."/truwood/".$_REQUEST['pdf'];
   echo "&lt;iframe src=\"$pdf\" width=\"100%\" style=\"height:600px\"&gt;&lt;/iframe&gt;";
  ?&gt;
  </code></pre>
  
  <p>NOTE: I have installed IDM (Internet Download Manager) to my laptop and I think it's the issue from IDM only.</p>
  
  <p>Please suggest something that prevents auto download from any third party software in PHP.</p>
  
  <p>Thanks in advance!</p>