Defining a variable in a js file, from a php file
<p>I have a javascript file that needs a value from a variable in a php script in which the JS file is being called.</p>

<pre><code>&lt;?
$sid = session_id();
?&gt;
&lt;html&gt;
&lt;head&gt;
&lt;script src="javascript.js" type="text/javascript"&gt;&lt;/script&gt;
...
</code></pre>

<p>How can i get $sid into the js file for use?</p>
