I have a server running on port 4901, which I can connect to with telnet.
I'm trying to connect to this server and send 1 line of data, but so far i've been unsuccessful.
my code to send the data is:
$sock = socket_create(AF_INET, SOCK_STREAM, 0);
socket_connect($sock, "192.168.0.5", "4901");
$msg = "test!";
socket_write($sock, $msg, strlen($msg));
...anyone know why this isn't getting there?