> > Because script redir.php3 must not have header command... Same header is
> > generated by web server. Thus browser really receives such header
twice -
> > first used to control page contents and second one become page contents.
> If
> > you will check page contents you will find this header before <html>
> tag...
> >
>
> Vladimir,
>
> Not quite true but close. In PHP you can send the header if you want.
You
> don't have to but you can. However, in this case it doesn't seem to be
> working right. I have many other PHP scripts with the same line of code
and
> it works fine. I just can't figure out why not here.
>
> Chuck
Sorry... I'm slightly sleepy and it's hard for me to explain what I exactly
mean now... :)
When Apache starts script on server it expect content-type header from
script. If script will return something else which Apache cannot understand
then you will get error from Apache. So your script actually generate this
header twice. See for yourself by running this script from shell - you will
get two headers instead of one.
Vladimir
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]