title: How to give Node.js server a command from php script?
body: <p>sorry to bother you, but I've been looking for answers and I couldn't find them anywhere... Well i'm a fresh dude in the field of javascript and node.js and here's my problem:</p>
  
  <p>I've created an application based on the tutorial of socket.io - Here's the link to the completed project of their <a href="https://github.com/rauchg/chat-example" rel="nofollow">chat example.</a> everything is working as it should, but I would really need to trigger somekind of a command while node server is running... command should be triggered via <strong>php</strong> script. </p>
  
  <p>The command should trigger an emit event - so every client in our case would see a new message sent via php.</p>
  
  <p>I saw couple of suggestions to do it from another server with php/using <strong>cURL</strong>. The problem is that I don't know how to fetch POST data sent from php to node.js server.</p>
  
  <p>Any solution to command node with php is more than welcome and again i'm sorry to bother you :) </p>