Can send header even though I have output
<p>Should'nt the following give an error message? It sends me to <code>domain.com/asdad/</code> instead of giving me an error message.</p>

<pre><code>&lt;?php
echo 'asdadasdasd';
if ($_SERVER['REQUEST_URI'] == '/newtest.php') {
    header("Location: /asdad/");
    exit;
}
?&gt;
</code></pre>

<p>I view this directly, no other files or code before or after this. Should'nt <code>header</code> give me an error and NOT send me to the new page as I have output before the <code>header</code>?</p>
