This is my problem:
I'm writing a script that...
1. creates a customized pls/m3u playlist
2. sends the pls or a m3u playlist to the webbrowser.
The browser should open Winamp/Windows Media Player and load the
downloaded playlist.
However this doesnt seem to work. Everything winamp shows is the
playlist-filename. It seems that the playlist-file that was sent to
Internet Explorer does not exist when winamp tries to read it.
If I take the output of the script and places it in a .m3u-file
everything will
work perfect, but I do not want a .m3u-file for each of my mp3s!
This is the code for my script:
-----------------------------------------------------------
<?php
include ('playlist.php' ); // include playlist-class
$playlist = new Playlist("m3u") ; // Create instance of playlist
$output = $playlist->getPlaylist( ); // Generate dynamic playlist
header("Content-Type: audio/mpegurl");
header("Content-Disposition: filename=playli st.m3u");
print($output);
?>
-----------------------------------------------------------
I'm writing a script that...
1. creates a customized pls/m3u playlist
2. sends the pls or a m3u playlist to the webbrowser.
The browser should open Winamp/Windows Media Player and load the
downloaded playlist.
However this doesnt seem to work. Everything winamp shows is the
playlist-filename. It seems that the playlist-file that was sent to
Internet Explorer does not exist when winamp tries to read it.
If I take the output of the script and places it in a .m3u-file
everything will
work perfect, but I do not want a .m3u-file for each of my mp3s!
This is the code for my script:
-----------------------------------------------------------
<?php
include ('playlist.php' ); // include playlist-class
$playlist = new Playlist("m3u") ; // Create instance of playlist
$output = $playlist->getPlaylist( ); // Generate dynamic playlist
header("Content-Type: audio/mpegurl");
header("Content-Disposition: filename=playli st.m3u");
print($output);
?>
-----------------------------------------------------------
Comment