Re: Echoed Status and Content-type Problem
| From: | Charles Williams \( CEO ACNS \) | Date: | Fri, 09 Mar 2001 14:48:30 +0000 |
| Subject: | Re: Echoed Status and Content-type Problem | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-5908@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Vladimir V. Bashkirtsev" <mega@konectanet.com.au>
To: "Charles Williams ( CEO ACNS )" <cwilliams@acns-online.com>;
<php-windows@lists.php.net>; "Linuxsa" <linuxsa@linuxsa.org.au>; "Cobalt
Users Group" <cobalt-users@list.cobalt.com>; "Apache Server mailing list"
<apache-server@egroups.com>
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