title: PHP after header location do something
body: <p>I need help, how can I do anything after I sent header?
  When I sent data, then I would like to refresh or redirect page.
  Maybe something check if printing finished...</p>
  
  <pre><code>header("Location: quickprinter://" . $textEncoded );
  </code></pre>
  
  <p>After this it stay on the page, but I can’t add more function like a refresh or redirect.</p>
  
  <pre><code>//This line not working:
  header("Refresh: 1; url=/index.php");
  
  //This line is overwriting the printing:
  header("Location: /index.php"); 
  </code></pre>
  
  <p>Any idea would be helpful.
  Thanks.</p>