JayC
Well-Known Member
Hey Guys,
So this is the first time I am trying to setup MUS Commands on Plus EMU. I have enabled Sockets on IIS and restarted IIS several times.
This is my function:
I have my VPS IP and Mus Port correct. The emulator is configured to the mus port, but when I try to call to this function my page turns white?
Bump Still having this issue and still working to get it.
FIXED:
Here is the way to send it:
You will have to add parameters and send the parameters. This was just me playing around til it worked
So this is the first time I am trying to setup MUS Commands on Plus EMU. I have enabled Sockets on IIS and restarted IIS several times.
This is my function:
PHP:
<?php
function Mus($header, $data = '')
{
$musData = $header . chr(1) . $data;
$sock = @socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp'));
@socket_connect($sock, "VPS IP", "MUS PORT");
@socket_send($sock, $musData, strlen($musData), MSG_DONTROUTE);
@socket_close($sock);
}
?>
Bump Still having this issue and still working to get it.
FIXED:
Here is the way to send it:
Code:
<?php
function Mus()
{
$port = 30001;
$ip = "127.0.0.1";
$musData = 'goto' . chr(1) . '1:111';
$sock = @socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp'));
@socket_connect($sock, $ip, intval($port));
@socket_send($sock, $musData, strlen($musData), MSG_DONTROUTE);
@socket_close($sock);
}
Mus();
?>
You will have to add parameters and send the parameters. This was just me playing around til it worked