Shoutcast Now Playing Script .. Font Color

Discussion in 'Programming' started by humanalii, Aug 3, 2011.

  1. #1
    Hi

    I am using this PHP SCRIPT to display now playing Title of the song

    the default color of font is Black

    i want it to be White

    What changing should i do in the code please help

    <?php/*
    
    
    Now Playing PHP script for SHOUTcast
    
    
    This script is (C) MixStream.net 2008
    
    
    Feel free to modify this free script 
    in any other way to suit your needs.
    
    
    Version: v1.1
    
    
    */
    
    
    
    
    /* ----------- Server configuration ---------- */
    
    
    $ip = "173.45.110.179";
    $port = "8555";
    
    
    /* ----- No need to edit below this line ----- */
    /* ------------------------------------------- */
    $fp = @fsockopen($ip,$port,$errno,$errstr,1);
    if (!$fp) 
        { 
        echo "Connection refused"; // Diaplays when sever is offline
        } 
        else
        { 
        fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
        while (!feof($fp)) 
            {
            $info = fgets($fp);
            }  
        $info = str_replace('</body></html>', "", $info);
        $split = explode(',', $info);
        if (empty($split[6]) )
            {
            echo "The current song is not available"; // Diaplays when sever is online but no song title
            }
        else
            {
            $title = str_replace('\'', '`', $split[6]);
            $title = str_replace(',', ' ', $title);
            echo "$title"; // Diaplays song
            }
        }
    ?>
    
    
    
    
    ?> 
    Code (markup):
     
    humanalii, Aug 3, 2011 IP