What does MUS do and how do I send a MUS through PHP? I'm using RevCMS. Thank you!
What does MUS do and how do I send a MUS through PHP? I'm using RevCMS. Thank you!
MUS is just a open port that your emulator can receive commands from.
It can be like :shutdown so you can shutdown your hotel via your housekeeping or give someone credits :coins $username $value
I never coded a mus port and dont know if RevCMS has one. You can check the php files in your housekeeping to see if there is one.
PHP Code:public function MUS($command, $data = '')
{
$MUSdata = $command . chr(1) . $data;
$socket = @socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp'));
@socket_connect($socket, $this->CmsSetting('client_ip'), $this->CmsSetting('client_mus'));
@socket_send($socket, $MUSdata, strlen($MUSdata), MSG_DONTROUTE);
@socket_close($socket);
}
I hope this helps.PHP Code:MUS("ha","this is a hotel alert);