title: PHP code inside a Javascript's "document.write()"
body: <p>I need to write some PHP code inside a Javascript's "<code>document.write()</code>". This is a dummy example, but in the future Javascript will generate automatically that PHP code.</p>
  
  <p>This is the Hello World I have coded:</p>
  
  <p><strong>MyFile.php</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;script type="text/javascript"&gt;
  document.write("&lt;?php echo \"Hello World\"; ?&gt;");
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>However, nothing is displayed, and in the DOM file I get this:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;script type="text/javascript"&gt;
  &lt;!--?php echo  "Hello World"; ?--&gt;
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Any help? Thanks</p>