When including your header, in PHP, how do you add things?
<p>I am building one of my first PHP websites, and just playing around with it. I am going to be using PHP includes, so I only have to change my meta stuff once. Currently, I have everything from the doctype to the end of the <code>&lt;/head&gt;</code>.</p>

<p>A friend is saying I should not include the <code>&lt;/head&gt;</code> on the header.php, but instead, include it on each page, so I can add page specific stuff. Is that a good way of doing it?</p>

<p>Currently, for stuff like title, I was doing </p>

<pre><code>&lt;title&gt;&lt;?php echo $page_title; ?&gt;
</code></pre>

<p>and then on the top of each page, I was doing  </p>

<pre><code>&lt;?php $page_title = 'Blah'; ?&gt; 
</code></pre>

<p>How would I add a page specific Javascript file if this is the way I'm doing this?</p>
