title: PHP UDP socket_ recv() timeout
body: <p>I am working on server/client php scripts which can communicate over a UDP socket.
  I was wondering if there is a <strong>good way to implement a timeout() for the socket_recv()</strong> function. Currently it is blocking in my client, waiting for an ack.</p>
  
  <p>Thanks for your input!</p>