title: Echo Javascript File in PHP
body: <p>I am trying to echo out a .js file within a head tag with php.  The css file is working properly, however the js file isn't getting included.  Here is what I have:</p>
  
  <pre><code>echo '&lt;head&gt;';
  echo '&lt;link rel="stylesheet" type="text/css" href="systemframe.css"/&gt;';
  echo '&lt;script type="text/javascript" src="mainmenu.js"&gt;&lt;/script&gt;';
  echo '&lt;/head&gt;';
  echo '&lt;form&gt;';
  echo '&lt;body&gt;';
  ...
  echo '&lt;/body&gt;';
  echo '&lt;/form&gt;';
  </code></pre>
  
  <p>I verified that the js file is good by manually placing it in the head tag of the index.html file.  The js file is located in the same folder as all of the other files, so there are no file directory levels.  My goal is to dynamically add js files to the head of the website through php.  I saw other similar examples, so I am a bit confused why it is not working. </p>