Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]Code: Select all
<?php
header("Content-Type: Application/m3u");
header("Content-Disposition: inline; filename=\"playlist.m3u\"");
echo "#EXTM3U\n
#EXTINF:317,BassHunter - Boten Anna\n
http://www.example.com/song1.mp3\n
#EXTINF:226,BassHunter - Du gamla du fria\n
http://www.example.com/song2.mp3\n";
break;
?>Code: Select all
<?php
header("Content-Type: Application/m3u");
header("Content-Disposition: inline; filename=\"naampje.m3u\"");
echo "http://www.example.com/song1.mp3\n"; echo "http://www.example.com/song2.mp3\n";
break;
?>and oly plays the first song with both scripts
or is there another way to generate an playlist
Weirdan | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]