title: PHP socket server
body: <p>I'm very new to socket programming, but do lot of coding with php.
  I have tested some socket server example codes and worked fine with localhost.  I use CLI to run the server.  But my concern is how do I run the socket server .php file at my hosting server? Do hosting providers normally give access to CLI to run the servers?  How do I make sure my server is always running? If the hosting server is restarted, what happens to my server?  In case, my server crashes (whatever reason), do I have to run it manually?
  Can someone help?</p>