I know this first thing you think is "no output to the browser before the header function". There isn't any. No tags, no spaces, no line breaks, nothing. I don't even have a "headers already sent" error displaying. For some reason though, the redirect simply does not work, and my script indicates that headers are getting sent anyway. I go to the page, and I just get a blank page with the undirected url up top. Is there some php configuration variable that could cause this to fail?
Here is my ENTIRE script.
Code: Select all
<?php
$a = headers_sent();
header("Location: http://google.com");
$b = headers_sent();
echo "$a<br />$b";
exit();
?>
The output is:
1
1
Obviously the first one should not be a 1. Any thoughts? I'm going nuts here.