All pastes #674941 Raw Edit

Mine

public php v1 · immutable
#674941 ·published 2007-08-29 17:52 UTC
rendered paste body
while(1) {$data = fgets($socket);if ($data == ":Fear!Fear@Fear.users.Swiftirc.net PRIVMSG #Fear :hi") {echo "responding";Fwrite($socket,"PRIVMSG #Fear :Hi There Fear");}echo $data. "\n";$test = $data;$pingcheck = explode(" ",$test);echo $pingcheck;if ($pingcheck[1] == "PING") {Fputs($socket, "PONG ".$pingcheck[1]."\n");}}