title: PHP header location-redirect doesn't work - why?
body: <p>Here's my file. I want to make it redirect, but nothing happens. To check out what is going on, I added an echo before the header part. </p>
  
  <p>It neither throws an error or redirect to index.php. What is wrong? 
  I have turned output buffering on/off, but nothing makes it redirect. What can I do?</p>
  
  <pre><code>&lt;?
  error_reporting(E_ALL);
  echo 'This is an error';
  
  header("Location: login.php");
  die();
  ?&gt;
  </code></pre>
  
  <p>Thanks</p>