All pastes #607764 Raw Edit

Mine

public text v1 · immutable
·published 2007-07-07 21:53 UTC
rendered paste body
$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);