title: php redirect/header(location) doesnt work on cgi
body: <p>i have a problem concerning redirecting in php running on cgi-server. the problem is the cgi-server is ignoring the redirecting command some how, so no redirecting. to be clear: there is <em>no</em>  problem when i use the same script on apache.</p>
  
  <p>okay now the details:
  i am using the Header('Location:'.$URL) function to Redirect from one script to another. i have tried to use relative URL and complete URLs, but still it seems i haven't write a Redirect in the script. </p>
  
  <p>for example i created a test-script with</p>
  
  <pre><code>#!/usr/bin/php54
  
  &lt;?php
  header('location:http://www.google.com/');
  exit();
  ?&gt;
  </code></pre>
  
  <p>when i run the script on a Apache then i would be redirected to Google, on the cgi-server i will give me a blank page with no quellcode well... the Editor indicates me 2 lines but there were also empty.</p>
  
  <p>there is also some other code stuff in the final script, but they are working fine on Apache <em>and</em> cgi. the only Problem now is the redirecting thats why i tested it in a short script and still it doesnt work without any other "troublemakers".</p>
  
  <p>i have work with php for a couple years but now the first time on cgi. from my experience there shouldn't be a Problem on the php-side, but i really have no clue whats going on in cgi... so i guess there is a Problem there? some cgi Settings?</p>
  
  <p>again: the Skript (see above) is working fine on Apache (without the first line #!...)  but on cgi it doesn't :-(</p>
  
  <p>Please help me!</p>