1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Making my digital download (mp3) available to mobile users also ??????

Discussion in 'General Programming Chat' started by chrisis4ever, May 27, 2013.

  1. chrisis4ever

    chrisis4ever Regular Member

    Joined:
    Jul 10, 2008
    Messages:
    240
    Likes Received:
    73
    Occupation:
    Musician/Marketer/Graphic Designer
    Location:
    Shaker Heights Ohio
    The mp3 just plays and doesn't download. Can anyone help? I am trying to sell my original music ... Thanks !!!
    I am coding in html. i tried a php script which did the same thing.
     
  2. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    950
    Likes Received:
    662
    Occupation:
    Web/Bot Developer
    Try using the following headers:

    Code:
    header('Content-Type: application/force-download');
    header('Content-Disposition: attachment; filename="filename"');