title: Socket.io from php source
body: <p>I have developed a client-server connection by using <code>socket.io</code>, and i'm happy to say that it works perfectly. 
  The problem comes because I need to create that connection from php Source ( not "echo   html javascript"  ). Something Like a </p>
  
  <pre><code>$socket = socket.createConectionJS;
  </code></pre>
  
  <p>I've tried difrerent ways, such as : </p>
  
  <ul>
  <li>execute the code from the server ( with spiderMonkey, and node ) </li>
  <li>creating a phpSocket and connecting it to the ServerSocket.j( but obbiously the format is diferent). or ...</li>
  <li>Finally i've tried by post with curl, where I had access to the serverscript, but i can't open a connection</li>
  </ul>
  
  <p>I'm thinking the only way to resolve it is simulating the web socket connection by creating a socket with the same way as de socket.io class do it but in php </p>
  
  <p>Anny socket.io expert could help ? </p>
  
  <p>Tnks ! ! <em>_</em></p>