title: How Can I execute a PHP function inside a Script tag?
body: <p>So I have as function for my css that looks like this</p>
  
  <pre><code>function include_css($css="") {
  include(SITE_ROOT.DS.'includes'.DS.'stylesheets'.DS.$css);
  }
  </code></pre>
  
  <p>And in the header I use this to call it</p>
  
  <pre><code>&lt;style type="text/css"&gt;&lt;?php include_css('public.css'); ?&gt;&lt;/style&gt;
  </code></pre>
  
  <p>I would like to do a similar function to call a javascript file to load in ckeditor</p>
  
  <pre><code>function include_javascript($js="") {
  include(SITE_ROOT.DS.'includes'.DS.'ckeditor'.DS.$js);
  }
  </code></pre>
  
  <p>But this bit of code doesn't work</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;&lt;?php include_javascript('ckeditor.js'); ?&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The tool bar doesn't show up when doing it this way.  It will show up when I use the website.</p>
  
  <pre><code>&lt;script src="//cdn.ckeditor.com/4.5.11/standard/ckeditor.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Why doesn't this work the same way as the Style tag?  Since this doesn't work is there a similar way to put PHP into a Script tag?</p>