Posted by C16 on 10/13/05 23:49
Many thanks Chuck that did the trick. For interest the header I have that
works is now:
header("Cache-Control: post-check=0, pre-check=0");
header("Expires: 0");
header('Content-Description: File Transfer');
header("Content-Type: " . $xtype);
header("Content-Length: " . $filesize);
header('Content-Disposition: inline; filename=' . basename($filename));
> Here's what works for me. I haven't tested your case with IE but you might
> give it a try.
>
> header('Content-Description: File Transfer');
> header('Content-Type: application/pdf');
> header('Content-Length: ' . filesize($file));
>
> // to download
> header('Content-Disposition: attachment; filename=' . basename($file));
>
> // to open in browser
> //header('Content-Disposition: inline; filename=' . basename($file));
>
> readfile($file);
>
> --
> *****************************
> Chuck Anderson Boulder, CO
> http://www.CycleTourist.com
> Integrity is obvious.
> The lack of it is common.
> *****************************
Navigation:
[Reply to this message]
|