Rate this script:  I Love it  /   I Hate it

Show a PDF from PHP


Code


<?
$pdf = 'archivos/documento.pdf';
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="'.$pdf.'"');
readfile($pdf);
?>
 

 

 
Show a PDF from PHP scripts | Show a PDF from PHP snippet | Show a PDF from PHP example | Show a PDF from PHP tutorial | Show a PDF from PHP code