title: jQuery and PHP - Comet
body: <p>I've searched Google a lot. In all the examples having <code>Comet</code> with <code>PHP</code> and <code>jQuery</code>. They are doing:</p>
  
  <pre><code>setTimeout(function(){ check_new_data_function() }, 5000); 
  
  function check_new_data_function(){
      $.ajax{
      blah
      }
  }
  </code></pre>
  
  <p>And yes, it's pretty simple to use Comet with checks in every 5 seconds. But this could not be called "COMET" at all, isn't the purpose of Comet to not loop our requests? and instead get the data which is <strong><em>Pushed</em></strong> from server?</p>
  
  <p><a href="http://www.zeitoun.net/articles/comet_and_php/start" rel="nofollow">See this example.</a>
  Or <a href="http://www.screenr.com/SNH" rel="nofollow">another clip.</a>
  They are all having a function which gets the data from another file with <code>$.ajax</code> requests by looping. But are they really <code>Long Polling/Comet</code>?</p>
  
  <p>As far as I knew when we didn't want to put the server under many <code>$.ajax</code> request which are looped, we would use Comet, in Comet the data is gonna Pushed from server to the client browser, was I wrong?</p>
  
  <p>Could someone make this idea clear for me?</p>