Mine
public text v1 · immutable$sock = @fsockopen("irc.trilogyirc.net", "6667", &$num, &$error, 2);
if ($sock) {
$stat = "<span style=\"color: #090; font-weight: bold;\">online</span>";
unset($sock);
} else {
$stat = "<span style=\"color: #900; font-weight: bold;\">offline</span>";
unset($sock);
}
fclose($sock);