title: PHP code will not execute in script tags
body: <p>I can put php code anywhere in my php file, but if i put the php code within the  tags it simply will not work.... What am I doing wrong?</p>
  
  <pre><code>&lt;html&gt;   
  &lt;head&gt;
  &lt;?php
      $hello3 = 'hello3';
      echo 'hello1';
  ?&gt;
      &lt;script&gt;
      &lt;?php echo 'hello2'; ?&gt;
          $(document).ready(function(){
              $("#target").click(function(){
                  alert('hello');
              });
          });
      &lt;/script&gt;
      &lt;?php echo $hello3; ?&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;button type="button" id="target"&gt;Press Me&lt;/button&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>when I execute this page I get this displayed on my screen:</p>
  
  <pre><code>hello1hello3 (then the button) 
  </code></pre>
  
  <p>the echo within the script tags will not execute... at all.</p>