I need some help on linking to mp3 files I have various mp3 files which i want members to be able to download but at the moment when i click on the download link it just opens up in a new window that displays the quick time player and plays the file, is there a way to not make it automatically play, but instead the box comes up and asks you, do you want to open this or save this file. adding them to a zip file is no good before any one suggests that.
Two way.. Tell them to right hand click and press download. Or.. If you have php on your server, create a file which forces downloads. If you want, i can find you the code for it, i got it somewhere. Regards.
That's true, but i think he wants to be able to download. Anyway heres and example of forcing download. <? $link = "DOWNLOAD LINK HERE" header("Content-type: audio/mpeg;\r\n"); $head = "Content-Disposition: attachment;\r\n"; header($head); readfile($link); ?> Code (markup):
mmm cant seem to get that to work quite right here is the line of code with the link in it echo "<td align=\"left\" class=\"songtitle\">".$value->song." <a href=\"images/stories/audio/$value->songmp3\" target=\"_blank\">download</a></td>"; Code (markup):