title: Loading Javascript through PHP
body: <p>From a tutorial I read on Sitepoint, I learned that I could load JS files through PHP (it was a comment, anyway). The code for this was in this form:</p>
  
  <pre><code>&lt;script src="js.php?script1=jquery.js&amp;scipt2=main.js" /&gt;
  </code></pre>
  
  <p>The purpose of using PHP was to reduce the number of HTTP requests for JS files. But from the markup above, it seems to me that there are still going to be the same number of requests as if I had written two  tags for the JS files (I could be wrong, that's why I'm asking).</p>
  
  <p>The question is how is the PHP code supposed to be written and what is/are the advantage(s) of this approach over the 'normal' method?</p>