title: How to send datagrams through a unix socket from PHP?
body: <p>I'm doing:</p>
  
  <pre><code>$socket = socket_create(AF_UNIX, SOCK_DGRAM, 0);
  if (@socket_connect($socket, $path) === false) { ... }
  </code></pre>
  
  <p>But I get this error:</p>
  
  <pre><code>(91): Protocol wrong type for socket
  </code></pre>
  
  <p>Am I using any of the parameters wrong? I suspect from the second socket_create parameter. I could't find any help in the documentation: <a href="http://php.net/manual/es/function.socket-create.php" rel="nofollow">http://php.net/manual/es/function.socket-create.php</a></p>