Tyring to get a flash button to download a mp3 from my site.
My flash actionscript points to the php file in the folder of the mp3
like this:
on (press) {
getURL("http://www.dieskim.com/mp3/Dans!_radiomix.php");
}
but my browser displays the php code only ----see:
http://www.dieskim.com/mp3/Dans!_radiomix.php
have I missed something then?
this is the php I used:
//get the filename from database
//.....
header("Content-Type: application/download");
header("Content-Disposition: attachment; $Dans!radiomix.mp3");
header("Content-Length: ".filesize($Dans!radiomix.mp3));
readfile($Dans!_radiomix.mp3);
Pls help thanks!!!