SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Download Screen

  1. #1
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    2,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Download Screen

    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.
    “Good artists copy, great artists steal” (Pablo Picasso - 1934)

  2. #2
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    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

  3. #3
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    2,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi xhtmlcoder,

    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
    “Good artists copy, great artists steal” (Pablo Picasso - 1934)

  4. #4
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    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.

    So all it would need to contain is that line I wrote. If that doesn't help you enough, you can search for 'htaccess tutorials' or there's plenty out there: http://www.javascriptkit.com/howto/htaccess.shtml


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •