Miscellany
public php v1 · immutablefunction send($msg){ /* $this->log("SEND: ".$msg."\n"); We don't need it, because it's interrupting the view. Maybe in the future, we wont print the log, only write it into a file. */ if(!$this->usesockets) { $socket = fwrite($this->socket, $msg."\n\r"); return $socket; } else { $socket = socket_write($this->socket, $msg."\n\r"); return $socket; } if(!$socket) { $this->log("There was an error while sending your message."); }}