July 22nd, 2000, 12:56 AM
I have a problem with redirection using header(), it seems like I have a output stream before the header() code, but I don't know where, any way to check for all the output stream?
July 22nd, 2000, 01:12 AM
Nah, but you should be getting an output somewhere? IF it's a big code, I feel sorry for you man, but the only way you can check for output is by hard debugging skillz. Try grepping for echo or printf or all the other word. Depends on what text editor you're doing this in but that's one way. No php function will help you out here though
July 22nd, 2000, 02:03 AM
is the php script calling the header is being included by any other file?
or maybe you could use another redirection method using <meta> tags...??
Note: Remember that the Header() function must be called before any actual output is sent either by normal HTML tags or from PHP. It is a very common error to read code with include() or with auto_prepend and have spaces or empty lines in this code that force output before header() is called.
July 22nd, 2000, 04:53 AM
You can use Meta tag to "refresh" and redirect an user. It will work in any place
of your script.
echo "<META Http-equiv='refresh' Content='3; URL=$address'>", where $address is an url to