title: How to open remote server socket php?
body: <p>I am developing chat application using php and ajax .
  later I found get messages by ajax after X seconds doesn't efficient.
  I want to develop it by php socket .
  I opened the local server socket by example :</p>
  
  <pre><code>php -f server.php 
  </code></pre>
  
  <p>My question is 
   How can I open remote server socket after uploading files to the host, need to write commands ?  </p>