save js files as php
<p>Let's say I've to include the following line with my website header:</p>

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

<p>Now anyone easily can visit <code>my--web--site/file.js</code> and view its source.
So, I wonder if there any idea I can rename <code>file.js</code> to <code>file.php</code> and still able to call it and works fine, so that no one can view it by visiting <code>my--web--site/file.php</code>.</p>

<p>Any idea?</p>
