What's the difference between socket_read and socket_recv? I'm trying to use PHP sockets but I get this warning using socket_read:
socket_read(): unable to read from socket [10057]
This is the line of coding for that:
$strData = socket_read($resSock, 65536, PHP_BINARY_READ);
Now when I use socket_recv, I get this warning:
socket_recv(): unable to read from socket [0]
And this is the line:
socket_recv($resSock, $strData, 65536, 0);
Please help me out here!