[thelist] PHP, PDF and IE7

Hershel Robinson hershel at galleryrobinson.com
Mon Mar 12 12:49:29 CDT 2007


> I didn't know whether your second test URL -- the one with
> content-disposition: attachment -- also had the application/pdf MIME
> type.

Sure did:

if ($fp = fopen($filename, 'rb')) {
$len = filesize($filename);
header('Content-Title: Mishpacha PDF Article');
header('Content-Type: application/pdf');
header('Content-Disposition: attachment; filename=somefile.pdf');
header("Content-Length: $len");
fpassthru($fp);
fclose($fp);
} else {

Before I carry on with more goose chasing, can anyone confirm or deny 
that this package:

http://www.ros.co.nz/pdf/

works on IE7? If so, I can examine his code.

Thanks,
Hershel

-- 
Web Site Construction by Gallery Robinson
http://galleryrobinson.com/



More information about the thelist mailing list