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

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

  1. chrisis4ever

    chrisis4ever BANNED BANNED

    Joined:
    Jul 10, 2008
    Messages:
    253
    Likes Received:
    76
    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:
    975
    Likes Received:
    682
    Occupation:
    Web/Bot Developer
    Try using the following headers:

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