All pastes #674944 Raw Edit

Mine

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