1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

m3u streams

Discussion in 'PHP' started by cool4cools, Oct 8, 2006.

  1. #1
    <?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/liedje1.mp3\n
    #EXTINF:226,BassHunter - Du gamla du fria\n
    http://www.example.com/liedje1.mp3\n";
    break;
    ?>

    or

    <?php
    header("Content-Type: Application/m3u");
    header("Content-Disposition: inline; filename=\"naampje.m3u\"");

    echo "http://www.example.com/liedje1.mp3\n"; echo "http://www.example.com/liedje2.mp3\n";
    break;
    ?>
     
    cool4cools, Oct 8, 2006 IP