Hello I am having issues what anything involving MUS, I have tried over 4 different MUS codes and they all cause IIS to give me an error 500.
This is my current MUS function:
PHP Code:public function Mus($header, $data = '')
{
if ($this->config['MUS']['enabled'] == "false" || $this->getSystemStatus() == "0")
{
return;
}
$musData = $header . chr(1) . $data;
$sock = @socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp'));
@socket_connect($sock, $this->config['MUS']['ip'], intval($this->config['MUS']['port']));
@socket_send($sock, $musData, strlen($musData), MSG_DONTROUTE);
@socket_close($sock);
}


Reply With Quote

