Quote Originally Posted by iUnknown View Post
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.
The reason it wasnt' fetching the stream title is because it was getting the information from http://habbcrazy.net:8002/7.html.

So then I had to attack Simon on msn with code, and he came up with a solution

PHP Code:
    $fp fsockopen("$server"$port$errno$errstr30);
    
fputs($fp"GET /index.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_title .= fgets($fp,1000);
    }
    
fclose($fp);
    
    
$title explode('<font class=default>Stream Title: </font>'$content_title);
    
$title explode('</tr>'$title[1]);
    
$title explode('<font class=default><b>'$title[0]);
    
$title explode('</b>'$title[1]);
    
$title $title[0];