Well on our radio, to play the radio in windows media player the file opens like a txt file instead of asking to save etc..
Does anyone know how to fix this?
Printable View
Well on our radio, to play the radio in windows media player the file opens like a txt file instead of asking to save etc..
Does anyone know how to fix this?
Well, unsure how to fix it so you can directly link it, but in the meantime, you can just use PHP to force the file to download:
Change $file to suit the filename of the ASX file you're downloading. Upload to webhost, and when you want the ASX file to download, link that file instead. The result will be exactly the same.PHP Code:
$file = 'filename.asx';
header("Content-type: video/x-ms-asf");
header("Content-Disposition: attachment; filename=$file");
readfile("$file");