title: do the files opened using $.post and $.get register as open files on linux server?
body: <p>I have recently updated my site with the use of ajax calls to improve the end-user experience. Some calls are set to poll the db repeadedly, others are called at to alter the database upon user interaction ie. completing a task or cancelling a cart item. </p>
  
  <p>Now I am getting server errors resulting from reaching my servers open file limit.</p>
  
  <p>Here is an example of the sort of code I am using: (credit goes to every tutorial found on google...)</p>
  
  <pre><code>function checkForNewData() {   
     $.get('checkForNewData.php',false,function(data){      
        if(data.length){      
            $('#newData').html(data);
          } 
     }); 
  }
  
  $(function(){  
     checkForNewData();  
       setInterval('checkForNewData()',10000); 
  });
  </code></pre>
  
  <p>I realize that by using "setInterval('checkForNewData()',10000);" that this means that file is loaded every 10000ms for every user that has this page open. </p>
  
  <p>Here are my questions regarding my ignorance of ajax:</p>
  
  <ol>
  <li>Does a unix server record each ajax call (of this manor) as a page load or open file?</li>
  <li>If the page loads behind the scenes, do I have to close it?</li>
  <li>Is there a better way to keep a site up-to-date than the repetitiously polling of my db. </li>
  </ol>
  
  <p>Thanks for your time and assistants.</p>