PHP AIM online status class

I created a small class that allows to determine the online status of any AOL account (as long as its privacy settings allow)

class AIM {
var $online = false;
function __construct($screenname){
if(!empty($screenname)) $this->online = $this->check($screenname);
}
function check($screenname){
$aol = "big.oscar.aol.com";
$sock = fsockopen($aol, 80, $errno, $errstr, 10);
if (!$sock) die("$errstr ($errno)\n");
socket_set_blocking($sock, 1);
fputs($sock,
"GET /$screenname?on_url=yes&off_url=offline HTTP/1.1\r\n" .
"Host: $aol\r\n\r\n"
);
$online = array();
while( !feof($sock) ){
$result = rtrim(fgets($sock, 2048));
if(empty($result) or eregi("^HTTP",$result)) continue;
$online[]=$result;
}
fclose($sock);

if(eregi("yes",implode(" ",$online))) {
return true;
} else {
return false;
}
}
}
?>