Including a single javascript file on multiple domains
<p>I have multiple domains with multiple copies of jQuery.js in separate subfolders.  I want to consolidate them so there's only one, and so there's no reference in one domain to another so I can use the same one for work and personal.</p>

<p>Furthermore, I don't want to use symbolic links because I'll be moving servers sometime this year and I feel that a lot of symlinks could complicate things.  One idea I had was instead of this in the HTML:</p>

<pre><code>&lt;script src="js/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
</code></pre>

<p>to do this:</p>

<pre><code>&lt;script src="jquery_min_js.php" type="text/javascript"&gt;&lt;/script&gt;
</code></pre>

<p>And that file will look like this:</p>

<pre><code>&lt;?php echo '/home/path/to/js_files/js/jquery.min.js' ?&gt;
</code></pre>

<p>Is there a smarter way to do this?  I'd like to somehow make a function so like </p>

<pre><code>&lt;script src="get_javascript.php?script=jquery_min_js" type="text/javascript"&gt;&lt;/script&gt;
</code></pre>

<p>and then get_javascript.php might look like:</p>

<pre><code>&lt;?php echo '/home/path/to/js_files/js/'.str_replace('_','.',$_GET['script']).'.js' ?&gt;
</code></pre>

<p>Am I barking up the wrong tree?   Am I even in the right forest?</p>
