----- 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]
[PHP-WIN] Re: Echoed Status and Content-type Problem
Charles Williams \( CEO ACNS \) Fri, 09 Mar 2001 06:19:58 -0800
- [PHP-WIN] Echoed Status and Content-type P... Charles Williams \( CEO ACNS \)
- [PHP-WIN] Re: Echoed Status and Conte... Vladimir V. Bashkirtsev
- [PHP-WIN] Re: Echoed Status and C... Charles Williams \( CEO ACNS \)
- [PHP-WIN] Re: Echoed Status a... Vladimir V. Bashkirtsev
- Re: [PHP-WIN] Echoed Status and Conte... Pablo Vera