donboe — 2011-07-30T14:46:37-04:00 — #1
In a website i'm working on the owner would like to have a download page, where people can download his music (can be in .rar format but mp3 as well). So where I'm looking for is text link, which when it is clicked not the music start to play but instead a download screen opens where people can download the file.
How do I do so. Thank you in advance.
xhtmlcoder — 2011-07-30T15:07:56-04:00 — #2
There are various ways to force download for example in .htaccess something on the lines of the following would probably work:
AddType application/octet-stream .mp3
donboe — 2011-07-30T16:05:15-04:00 — #3
I never have done something with .htaccess. Can you explain me this a liitle or maybe point me to some kind of tutorial where I can pick some info up on the subject. Thank you
xhtmlcoder — 2011-07-31T08:46:21-04:00 — #4
You typically need an Apache server and be allowed to write a .htaccces file. Our very own Ralph the Mighty covers a little about .htaccess in the free SPF book 'Thinking Web' Thinking Web: Voices of the Community from page 5.
So the hardest part is saving the extension file but other than that it's pretty much like a text document with line commands.