If you want to show your PDF file in PHP, you can put the code as follow : ——————— <?php $pdf=’Showing.pdf’; header(‘Content-type: application/pdf’); header(‘Content-Disposition: attachment; filename=”‘.pdf.’”‘); readfile($pdf); ?> ————————– Note : The above code will open/ save PDF file as attachment. If you want to show the PDF file directly into same window, you can change the Content-disposition [...]
Filed under: PHP Programming | Tagged: show pdf php header inline attachment | Leave a Comment »