Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default Getting SHOUTcast stats with just IP & Port?

    Does anyone have the code to do this?
    +rep

  2. #2
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default

    Hello Jack!

    Saw a script some were on the net that only needed IP and port about a week ago.

    Ill hvae a look for it next time im on my pc i might of downloaded it..


    Thanks Jamieb

  3. #3
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Quote Originally Posted by Jamieb View Post
    Hello Jack!

    Saw a script some were on the net that only needed IP and port about a week ago.

    Ill hvae a look for it next time im on my pc i might of downloaded it..


    Thanks Jamieb
    Ok, thanks

  4. #4
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    PHP Code:
    <?php
    // Mysql staus image script by Anthony Parkes
    // [email protected]
    // www.aj-services.com


    $server ""// IP address to your shoutcast server.
    $port ""// port of your shoutcast server
    $online ""// Online Gif image
    $offline ""// offline gif image




    // Start Data Collection
     
    $fp fsockopen("$server"$port$errno$errstr30);
          
    fputs($fp"GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)\r\n\r\n");
          while (!
    feof($fp)) {
              
    $content .= fgets($fp,128);
    }
          
    fclose($fp);
    // start data processing
          
    $debut strpos($content'<body>') + strlen('<body>');
          
    $fin strpos($content'</body>'$debut);
          
    $string substr($content$debut$fin $debut);
          
    $stats explode(','$string);

    // Start Image generation
    // Dedug Status echo "$stats[1]";
    //offline
    if ($stats[1] == "0") {
    header("Content-type: image/gif");
    readfile('$offline');
    }

    //online
    if ($stats[1] == "1") {
    header("Content-type: image/gif");
    readfile('$online');
    }

    ?>
    [http://www.habboring.com/scripts/SHO...e%20Stats.zip]

  5. #5
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Quote Originally Posted by Calon View Post
    PHP Code:
    <?php
    // Mysql staus image script by Anthony Parkes
    // [email protected]
    // www.aj-services.com


    $server ""// IP address to your shoutcast server.
    $port ""// port of your shoutcast server
    $online ""// Online Gif image
    $offline ""// offline gif image




    // Start Data Collection
     
    $fp fsockopen("$server"$port$errno$errstr30);
          
    fputs($fp"GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)\r\n\r\n");
          while (!
    feof($fp)) {
              
    $content .= fgets($fp,128);
    }
          
    fclose($fp);
    // start data processing
          
    $debut strpos($content'<body>') + strlen('<body>');
          
    $fin strpos($content'</body>'$debut);
          
    $string substr($content$debut$fin $debut);
          
    $stats explode(','$string);

    // Start Image generation
    // Dedug Status echo "$stats[1]";
    //offline
    if ($stats[1] == "0") {
    header("Content-type: image/gif");
    readfile('$offline');
    }

    //online
    if ($stats[1] == "1") {
    header("Content-type: image/gif");
    readfile('$online');
    }

    ?>
    [http://www.habboring.com/scripts/SHOUTcast%20Image%20Stats.zip]
    Ok, I have edited it to display the actual stats. I'm having trouble displaying the current radio dj.
    PHP Code:
    echo("HabbCrazy is Online<br>Listeners: $stats[0] ($stats[4] unique)<br>Radio DJ: $stats[help]<br>Current Song: $stats[6]"); 
    Do you know which number is stream title?

  6. #6
    Join Date
    May 2008
    Location
    Birmingham
    Posts
    307
    Tokens
    0

    Default

    The Housekeeping Guy has a radio spy which uses just the ip and port. Check that out

  7. #7
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Quote Originally Posted by Stepheen View Post
    The Housekeeping Guy has a radio spy which uses just the ip and port. Check that out
    it took ages to load for me

    Sadly, this script dosn't get the stream title, but im sure it can be added?

    $stats[0] = Listeners
    $stats[1] = Status
    $stats[2] = Peak
    $stats[3] = Max Listeners
    $stats[4] = Unique Listeners
    $stats[5] = Bitrate
    $stats[6] = Song

    So it has everything but stream title :S

  8. #8
    Join Date
    Jul 2005
    Posts
    1,653
    Tokens
    50

    Latest Awards:

    Default

    Why does everyone use explode and stuff to get data from a page?????????????????????????????????????????????? ?????????????????????

  9. #9
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Quote Originally Posted by RYANNNNN View Post
    Why does everyone use explode and stuff to get data from a page?????????????????????????????????????????????? ?????????????????????
    Because all you have to do is explode this:
    http://habbcrazy.net:8002/7.html

  10. #10
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Quote Originally Posted by Jack120 View Post
    it took ages to load for me

    Sadly, this script dosn't get the stream title, but im sure it can be added?

    $stats[0] = Listeners
    $stats[1] = Status
    $stats[2] = Peak
    $stats[3] = Max Listeners
    $stats[4] = Unique Listeners
    $stats[5] = Bitrate
    $stats[6] = Song

    So it has everything but stream title :S
    The Housekeeping Guy script uses that script so it was probably just a host or something that made it load slowly, or a SHOUTcast it tried to connect to that was down. Just copy the script, it has stream title.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


Page 1 of 2 12 LastLast

Posting Permissions

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