[thelist] PHP, PDF and IE7

Hershel Robinson hershel at galleryrobinson.com
Mon Mar 26 06:51:08 CDT 2007

> I need a similar script for my site. I will be very glad if you can share
> the file viewpdfTest.php & viewpdfTest2.php or send me the code

if (file_exists($filename)) {
$len = filesize($filename);
$pdfoutput = file_get_contents($filename);
header('Content-Type: application/pdf');
header('Content-Disposition: inline; 
header("Content-Length: $len");
echo $pdfoutput;
} else {
echo 'Invalid File?<br>';
echo $file[filename];

Web Site Construction by Gallery Robinson

More information about the thelist mailing list