Javascript get output from separate php script
<p>I want javascript to be able to call a php script (which just echos a string) using jQuery.</p>

<p>I think <code>$.get</code> is the right way, but not too sure.</p>

<p>I then want to use the returned string as a javascript variable.</p>
