title: Why can't server side and client side scripts interact?
body: <p>I'm new to client and server side scripts, and I was wondering, how come they can't interact?</p>
  
  <p>The major difference Code Conquest stated <a href="http://www.codeconquest.com/website/client-side-vs-server-side/" rel="nofollow">here</a> is that:</p>
  
  <blockquote>
    <p>... is called a client side language is because it runs scripts on your computer after you’ve loaded a web page.</p>
  </blockquote>
  
  <p>And</p>
  
  <blockquote>
    <p>A server side or back-end language runs its scripts before the HTML is loaded, not after.</p>
  </blockquote>
  
  <p>Even if the server side script (e.g. PHP) has already been executed, how come it can't be changed (with JavaScript) after the page has loaded?</p>
  
  <p>I want to call PHP from JS. For example, is there a possible way to do this?</p>
  
  <pre><code>setInterval(&lt;?php someFunction() ?&gt;,10000);
  </code></pre>
  
  <p>Sorry if I'm misinterpreting something, and please point it out to me.</p>