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