Closed Thread
Results 1 to 6 of 6

Thread: Now Playing:

  1. #1
    Junior Member JaySann is an unknown quantity at this point
    Join Date
    Sep 2006
    Posts
    7

    Now Playing:

    Does anyone know how to get the HTML for when you are on air, it will display the song title to your site..

  2. #2
    FWS Addict brutetal is an unknown quantity at this point
    Join Date
    Mar 2006
    Location
    CA
    Posts
    504
    What program are you using?

    Divinity Host http://divinityhost.net - Free, Shared, & Reseller Hosting or even Pay for what you use!

  3. #3
    Junior Member JaySann is an unknown quantity at this point
    Join Date
    Sep 2006
    Posts
    7
    Winamp

  4. #4
    Junior Member JaySann is an unknown quantity at this point
    Join Date
    Sep 2006
    Posts
    7
    does anyone know?

  5. #5
    Pro Member Fried has a little shameless behaviour in the past
    Join Date
    Sep 2005
    Posts
    317
    You can't use HTML to do this.

    You will have to use PHP with socket() functions to connect to the radio server & port, then send and receive information to get the song title.

    Unless your radio host has some sort of code you can copy to show the song title.

  6. #6
    b& midwesthosting is an unknown quantity at this point
    Join Date
    May 2006
    Location
    St.Louis,Mo
    Posts
    356
    Try this out i use this on some sites
    <div style="Visibility: Hidden; Position: Absolute;">
    <?
    $open = fsockopen("server ip here","port here");
    if ($open) {
    fputs($open,"GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n");
    $read = fread($open,1000);
    $text = explode("content-type:text/html",$read);
    $text = explode(",",$text[1]);
    } else { $er="Connection Refused!"; }
    ?>
    </div>
    <?
    if ($text[1]==1) { $state = "Up"; } else { $state = "Down"; }
    if ($er) { echo $er; exit; }
    echo "<font face=verdana size=1>
    Server State: <b>$state</b><br>
    Bitrate: $text[5] Kbps<br>
    Current Song: $text[6]<br>
    Stream Status:$text[4]
    </font>";?>

Closed Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts