hello,
i have a script that generates and allows a user to download a mp3 playlist. this used to work... im testing again and it doesnt seem to be working now. here is the code:
header("Content-Type: application/download\n");
header("Content-Disposition: attachment; filename=playlist.m3u");
echo "#EXTM3U\n";
for($i=0; $i<count($session_pl); $i++)
{
echo $session_pl[$i]."\n";
}
session_unregister("session_pl");
exit();
in ie 5.5 it saves the contents of the html page in the file and not what is echoed out. i cant figure out why.
also i would like to use the correct content type - how can i find what this would be for an m3u file. thanks in advance.
-paul