Why do I have PHP code above the doctype?
<p>I'm still learning this stuff, but for the most part, my understanding is that you want code in the head or the body.  I'm working with a page that is a login page.</p>

<p>Above the doctype is all the php code for the login validation checking and the "root.php" include which is declaring the root of the project, etc.</p>

<p>Is this the way things should be done?</p>

<p>If I move the doctype to the top, I get an error.  As it is, the browser sees the doctype as the top item when I view source.</p>

<p>So my question is when would I want to put code above the doctype?</p>
