[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Re: Echoed Status and Content-type Problem
- Subject: [cobalt-users] Re: Echoed Status and Content-type Problem
- From: "Charles Williams \( CEO ACNS \)" <cwilliams@xxxxxxxxxxxxxxx>
- Date: Fri Mar 9 06:37:14 2001
- Organization: Accent Computer & Network Services
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
----- Original Message -----
From: "Vladimir V. Bashkirtsev" <mega@xxxxxxxxxxxxxxxxx>
To: "Charles Williams ( CEO ACNS )" <cwilliams@xxxxxxxxxxxxxxx>;
<php-windows@xxxxxxxxxxxxx>; "Linuxsa" <linuxsa@xxxxxxxxxxxxxx>; "Cobalt
Users Group" <cobalt-users@xxxxxxxxxxxxxxx>; "Apache Server mailing list"
<apache-server@xxxxxxxxxxx>
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