Forcing Download of Files...

windows

Guest
Is there a way to "force" a Download of a file? For example, I have a link to a file on a server that is a Microsoft Word document. When the user clicks on the link, the file automatically opens because the user has Microsoft Word installed on the workstation. I need to be able to "force" the Download instead of automatically opening.

Thanx.Ryan once wrote one such script (<!-- m --><a class="postlink" href="http://www.infinitypages.com/research/Download">http://www.infinitypages.com/research/Download</a><!-- m --> .htm)...

PS: This should probably be in the General section...This appears to work in all browsers I've tested except for one.

Can anyone guess which one?

:rolleyes:

Although it Download s the correct file to the workstation, it is naming the file with the php file name instead of the real file name which is a Word document.

Any ideas?

Thanx.You could try contacting the creator (Ryan Brill) through his business site (<!-- m --><a class="postlink" href="http://www.infinitywebdesign.com/">http://www.infinitywebdesign.com/</a><!-- m -->) and ask him about it.Lookup .htaccess octet-stream if you want the other way.
 
Back
Top