Force Download of .pdf files?

liunx

Guest
Greetings,<br />
<br />
I'm wondering if anyone can tell me how to create a link to a .pdf file that ***forces*** the standard file Download <!--more--> box to open as opposed to opening the .pdf in the browser.<br />
<br />
I realise that zipping the file would do it, but I'm dealing with a situation where I need this to be as simple as possilbe as the "normal" user of this website isn't going to be able to deal with unzippiing a file.<br />
<br />
They're also not going to be able to deal with right clicking and<br />
choosing "Save Target As..."<br />
<br />
Any and all suggestions welcome. I'd love it if you'd just paste the code in your response! <br />
<br />
Thank you,<br />
<br />
Steve<br />
:D<!--content-->Take a look at <!-- m --><a class="postlink" href="http://www.infinitypages.com/research/Download">http://www.infinitypages.com/research/Download</a><!-- m --> <!--more-->.htm for a solution in PHP.<!--content-->Ummm....looked promising but when testing ie6 returns:<br />
<br />
CGI Error<br />
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:<br />
<p><p><pre></pre><br />
<br />
That I don't get. It works great st the link you gave.<br />
As a second test I took the source code ( exactly )<br />
from the page you sent me to and same error message.<br />
<br />
My host has php on by default.<br />
<br />
Any thoughts?<br />
<br />
Thanks,<br />
<br />
Steve<!--content-->
 
Back
Top