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);
}
?>
Web page load is corrupted
Moderator: General Moderators
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Check to make sure the PDF isn't corrupt. And, it doesn't look like you call the function in your code.
Remember to use the tags 
Remember to use the
Code: Select all
Re: Web page load is corrupted
I am callin this from other HTML, I mean that there is a HTML that call my Function
Code: Select all
<?php
function pdf($name3){
$mi_pdf = $name3;
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="'.$mi_pdf.'"');
readfile($mi_pdf);
}
?>
Hi there,
I am open a PDF file, just using the code below, but it is corrupted, anyone has a solution?
[color=#804080]
<?php
function pdf($name3){
$mi_pdf = $name3;
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="'.$mi_pdf.'"');
readfile($mi_pdf);
}
?>[/color]