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
    Apr 2008
    Posts
    1,153
    Tokens
    199

    Latest Awards:

    Default Radio Statistics

    Anybody tell me the php or w.e it is coded in. Just so i can put my radio details into it and it shows the dj name and song playing & listeners.

  2. #2
    Join Date
    Oct 2007
    Location
    Ireland
    Posts
    2,040
    Tokens
    0

    Latest Awards:


  3. #3
    Join Date
    Apr 2008
    Posts
    1,153
    Tokens
    199

    Latest Awards:

    Default

    Quote Originally Posted by Kevin View Post
    Im with Xeodomains.
    They dont support PHP.
    They dont even have a cpanel just ftp.

  4. #4
    Join Date
    Jul 2004
    Location
    California
    Posts
    8,725
    Tokens
    3,789
    Habbo
    HotelUser

    Latest Awards:

    Default

    The best one is GMTT stats script (regardless of whether or not you have PHP. If you don't you're not going to get very far):
    <?php
    // ©2004-2005 Daniel Brown http://www.gmtt.co.uk
    $scfp = fsockopen("iphere", portbasehere, &$errno, &$errstr, 30);
    if(!$scfp) {
    $scsuccs=1;
    echo'<font=verdana size=2><center>Your radio is <b>offline</b>!</center></font>';
    }
    if($scsuccs!=1){
    fputs($scfp,"GET /admin.cgi?pass=administratorpasswordhere&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
    while(!feof($scfp)) {
    $page .= fgets($scfp, 1000);
    }
    $loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS");
    $y=0;
    while($loop[$y]!=''){
    $pageed = ereg_replace(".*<$loop[$y]>", "", $page);
    $scphp = strtolower($loop[$y]);
    $$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed);
    if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE || $loop[$y]==SERVERTITLE)
    $$scphp = urldecode($$scphp);
    $y++;
    }
    $pageed = ereg_replace(".*<SONGHISTORY>", "", $page);
    $pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed);
    $songatime = explode("<SONG>", $pageed);
    $r=1;
    while($songatime[$r]!=""){
    $t=$r-1;
    $playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]);
    $playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]);
    $song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]);
    $song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]);
    $song[$t] = urldecode($song[$t]);
    $dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page);
    $dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed);
    $r++;
    }
    fclose($scfp);
    }
    if($streamstatus == "1"){
    echo'
    <center>
    <font face=verdana size=2>Your radio is <font color=green><b>online</b>!</font><br><br>
    <font face="verdana" size="2"><b>Current DJ: </b>'.$servertitle.'<br>
    <b>Listeners: </b>'.$currentlisteners.'<br>
    <b>Now Playing: </b> '.$song[0].'<br>
    <b>Recent Songs:</b><br>
    <b>1.</b> '.$song[1].'<br>
    <b>2.</b> '.$song[2].'<br>
    <b>3.</b> '.$song[3].'<br>
    <b>4.</b> '.$song[4].'<br>
    <b>5.</b> '.$song[5].'<br>
    </font>';
    }
    if($streamstatus == "0")
    {
    echo'<font face=verdana size=2><center>Your radio is <font color=green><b>online</b></font>. But nobody is DJing!</center></font>';
    }

    ?>
    Last edited by HotelUser; 11-11-2008 at 08:46 PM.
    I'm not crazy, ask my toaster.

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

    Latest Awards:

    Default

    You should highly consider moving web hosts if they don't support PHP.

  6. #6
    Join Date
    Oct 2007
    Location
    Ireland
    Posts
    2,040
    Tokens
    0

    Latest Awards:

    Default

    SAWHosting.com are quite cheap, a good host, and support PHP. there your best bet i reckon.
    o.o

  7. #7
    Join Date
    Jul 2004
    Location
    California
    Posts
    8,725
    Tokens
    3,789
    Habbo
    HotelUser

    Latest Awards:

    Default

    Quote Originally Posted by Kevin View Post
    SAWHosting.com are quite cheap, a good host, and support PHP. there your best bet i reckon.
    I'm guessing since he doesn't presently have PHP with his host that he's with a free host. There's a great deal of good free webhosts.
    I'm not crazy, ask my toaster.

  8. #8
    Join Date
    Oct 2007
    Location
    Ireland
    Posts
    2,040
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by HotelUser View Post
    I'm guessing since he doesn't presently have PHP with his host that he's with a free host. There's a great deal of good free webhosts.
    You must have searched my name, and picked out post's you would like to correct me on.

    He did not request a free host, i suggested one where he could get a very good deal.

    if your looking for a free host 000webhost is the way foward.
    000Webhost provide Free Web Hosting with PHP,MYSQL and cPanel, no ads
    o.o

  9. #9
    Join Date
    Jul 2004
    Location
    California
    Posts
    8,725
    Tokens
    3,789
    Habbo
    HotelUser

    Latest Awards:

    Default

    Quote Originally Posted by Kevin View Post
    You must have searched my name, and picked out post's you would like to correct me on.
    You think so much of yourself, don't you?
    Quote Originally Posted by Kevin View Post
    He did not request a free host, i suggested one where he could get a very good deal.
    He didn't request for any hosts at all. You shouldn't correct people when you're wrong.
    Quote Originally Posted by Kevin View Post
    if your looking for a free host 000webhost is the way foward.
    000Webhost provide Free Web Hosting with PHP,MYSQL and cPanel, no ads
    Now you're giving him the address to a free host, when you told me he didn't ask for a free host..idiot..
    I'm not crazy, ask my toaster.

  10. #10
    Join Date
    Oct 2007
    Location
    Ireland
    Posts
    2,040
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by HotelUser View Post
    You think so much of yourself, don't you?He didn't request for any hosts at all. You shouldn't correct people when you're wrong.
    Now you're giving him the address to a free host, when you told me he didn't ask for a free host..idiot..
    I was posting the URL of the freehost for you, as you were unable to do so yourself, and left him wondering...
    o.o

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
  •