Mine
public php v1 · immutablewhile(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");}}