View pdf in browser without download prompt
<p>firefox prompting to download the PDF file every time but the Chrome is Showing PDF in browser without download prompt, But I need to show PDF in any browser without download prompt, can anyone help me?</p>

<p><strong>This is the code</strong></p>

<pre><code>$file = 'the_pdf.pdf';


header('Content-type: application/pdf');
header('Content-Disposition: inline; filename="' . $file . '"');
header('Content-Transfer-Encoding: binary');
header('Content-Length: ' . filesize($file));
header('Accept-Ranges: bytes');

@readfile($file);
</code></pre>
