----- Original Message -----
From: "Vladimir V. Bashkirtsev" <[EMAIL PROTECTED]>
To: "Charles Williams ( CEO ACNS )" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>; "Linuxsa" <[EMAIL PROTECTED]>; "Cobalt
Users Group" <[EMAIL PROTECTED]>; "Apache Server mailing list"
<[EMAIL PROTECTED]>
Sent: Friday, March 09, 2001 3:28 PM
Subject: Re: Echoed Status and Content-type Problem


> > This should not be there.  There is a header() call in the redir.php3
> script
> > as follows:
> >
> > <snip>
> > header("Status: 200 OK");
> > </snip>
> >
> > Why is this echoing on the browser screen?  Also, the Content-type:
> > text/html is nowhere in the scripts and still being echoed.
>
> 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



-- 
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]

Reply via email to