title: Header not redirecting if __DIR__ is used
body: <pre><code>header ('Location:'.__DIR__.'/view/prijava_view.php'
  </code></pre>
  
  <p>If I use above header in index.php file it just shows a blank page with "localhost" URL. It works if I use include instead of header though.</p>
  
  <p>Is this an issue with <em>DIR</em> magic constant? It seems you can't use it in headers, or do I have a problem with my code?</p>