ace Posted April 21, 2005 Posted April 21, 2005 Hello, Is there a way to have a link on a webpage that prompts you to download a file. I have a word document that i want to make available for download. I would like it that when the user clicks on the link they are prompted to download the file. Any idea, TCH family on how to do this. Or any other suggestions? Thanks Quote
TweezerMan Posted April 21, 2005 Posted April 21, 2005 I believe you'd just create a regular link to the .doc file on the server. Quote
TCH-Bruce Posted April 22, 2005 Posted April 22, 2005 I believe if it's a .doc extension it will try to open in Word if the user is uning IE when they click the link. You could use a force download script written in PHP that would be better. Quote
Pendragon Posted April 22, 2005 Posted April 22, 2005 Hello, Is there a way to have a link on a webpage that prompts you to download a file. I have a word document that i want to make available for download. I would like it that when the user clicks on the link they are prompted to download the file. Any idea, TCH family on how to do this. Or any other suggestions? Thanks <{POST_SNAPBACK}> If you put it in your public ftp and then create the link using ftp:// instead of http:// that will force the download. I'm assuming this work across browsers though, I don't know for sure. Or, you could just have text that says 'use right click and save as...' I there a particular reason you want to force a download rather than letting them click on the link (and open it if they can)? Quote
mr_lucas Posted April 30, 2005 Posted April 30, 2005 Hello evrybody, just zip it up in to zip or rar basicaly any extention IE or any other browser does not know will promt for a download insted of opening it Quote
Head Guru Posted April 30, 2005 Posted April 30, 2005 Using the .zip idea is a good one. I would go with Bruce's idea myself. Quote
tomowa Posted April 30, 2005 Posted April 30, 2005 I've used the "PHP Easy Download" from here http://www.ironclad.net/scripts/ Straight forward to use, what ever directory you set it to use it provides the 'save as' or 'run' dialoge prompt for files with the file extensions you set it to offer for downloads. HTH, Tom Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.