All pastes #26665 Raw Edit

Miscellany

public php v1 · immutable
#26665 ·published 2005-10-25 21:57 UTC
rendered paste body
function 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.");	}}