How to force mp3 file to download PHP

Force mp3 to download instead of playing

Just add a .htaccess file in the mp3 folder with this content:

<Files *.*>
    ForceType application/octet-stream
    Header set Content-Disposition attachment

Leave a comment

Your email address will not be published

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

17 + = 24