title: Idea how to implement server-push content without php looping
body: <p>I was implementing the server-push content using comet to the client browser.
  There should be updates when mysql got insert then something will happen to client, so I'm currently doing by PHP like this:</p>
  
  <pre><code>PHP
    while (check database if update is there)
    {
      usleep(10000); 
     // do write json
    }
  </code></pre>
  
  <p>It actually working, but what happening to me is my hosting(shared) run out of resource even when I just test with 5 simultaneous clients.
  CPU is 40% loading at this moment and cause account disable.</p>
  
  <p>So please someone advise any idea how to trigger php to send out the new update only without looping check.</p>