Web page load is corrupted
Posted: Mon Nov 23, 2009 9:39 am
Hi there,
I am open a PDF file, just using the code below, but it is corrupted, anyone has a solution?
<?php
function pdf($name3){
$mi_pdf = $name3;
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="'.$mi_pdf.'"');
readfile($mi_pdf);
}
?>
I am open a PDF file, just using the code below, but it is corrupted, anyone has a solution?
<?php
function pdf($name3){
$mi_pdf = $name3;
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="'.$mi_pdf.'"');
readfile($mi_pdf);
}
?>