title: Fatal error: Call to undefined function socket_create()
body: <p>My code is like this:</p>
  
  <pre><code>if( ($this-&gt;master=socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) &lt; 0 )
  
      {
      die("socket_create() failed, reason: ".socket_strerror($this-&gt;master));
      }
  </code></pre>
  
  <p>when I run my php file which create connection with web socket, I got error 
  Fatal error: Call to undefined function socket_create() in the line 
  if( ($this->master=socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) &lt; 0 )</p>
  
  <p>Therefore i am not able to connect web socket and also not able to get response message from socket because Socket Status: 3 (Closed) is displaying in my browser when run client page .</p>
  
  <p>Have you got an idea what is missing?
  Thank you in advance.</p>