title: can php handle http requests and web sockets at the same time
body: <p>Suppose we have a normal website like a forum for example, and somewhere in the website the users can talk to each other through a chat box down at the corner.</p>
  
  <p>If we want to use web sockets (not AJAX polling) for the live chat, PHP should run in an infinite loop through the command line to keep the web sockets server alive. Is it possible to handle the HTTP requests and keep the loop running (without using anything outside of PHP like Nodejs,etc..) ?</p>