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!


Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2008
    Location
    Victoria, Australia
    Posts
    462
    Tokens
    2,114
    Habbo
    Fiendly

    Latest Awards:

    Default [PHP] Radio help.

    Hello Habboxers,

    Currently looking for a DJ says part for a script or more-so the 'Now Playing'.
    I had the code a long time ago but had forgotten it.

    Anyone know the specific?
    Don't want to go fishing through long extents, just want a small simple short code.

    Thanks for your time,
    Fiendly

  2. #2
    Join Date
    May 2011
    Location
    /home/aidonia
    Posts
    12
    Tokens
    0

    Default

    I'd assume this works, but I haven't been able to test it. I'd provide you with functional code myself, but I'm slightly rusty in PHP as I've been away from it for the past year.
    Last edited by Aidonia; 19-05-2011 at 07:45 PM.

  3. #3
    Join Date
    Dec 2008
    Location
    Victoria, Australia
    Posts
    462
    Tokens
    2,114
    Habbo
    Fiendly

    Latest Awards:

    Default

    I'll go through it later on, haven't got the code on my hard drive (Back everything up) so yeah.
    Thanks, Ill see if it works after cropping and that.

  4. #4
    Join Date
    Jan 2011
    Location
    England, United Kingdom
    Posts
    253
    Tokens
    40
    Habbo
    Pegle

    Latest Awards:

    Default

    Might sound stupid, but have you tried HabboEmotion? The script is usually quite short and gives you what you need.


  5. #5
    Join Date
    Dec 2008
    Location
    Victoria, Australia
    Posts
    462
    Tokens
    2,114
    Habbo
    Fiendly

    Latest Awards:

    Default

    Yeah, some are really complex.. I've got everything else but the title.

  6. #6
    Join Date
    Apr 2011
    Posts
    11
    Tokens
    0

    Default

    PHP Code:
    <?php 
    $config
    ["host"]="your host";
    $config["port"]="your port";

    /*Coded by Aidan Taylor - www.aidantaylor.net*/
    function _DownloadFile(){
        global 
    $config;
        
    $tmpStr=null;
        
    $fSock=@fsockopen($config["host"],$config["port"],$errno,$errstr,5);
        if (
    $fSock){
            @
    fwrite($fSock,"GET /7.html HTTP/1.0\r\n"."User-Agent: XML Getter (Mozilla Compatible)\r\n\r\n");
            while(!
    feof($fSock)){
                
    $tmpStr.=fgets($fSock,1024);
            }
        }
        @
    fclose($fSock);
        return 
    $tmpStr;
    }
    $strResult=_DownloadFile();
    $stats = array();
    if(
    stristr($strResult"HTTP/1.0 200 OK")===FALSE){
        
    $blnStatus=false;
    } else {
        
    $blnStatus=true;
        
    preg_match("/(\d+),(\d+),(\d+),(\d+),(\d+),(\d+),(.*)/",$strResult,$stats);
        
    array_shift($stats);
    }
    echo 
    $stats[6];
    ?>

Posting Permissions

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