Re: content-type:text/html

From: Date: Sat, 10 Jun 2000 17:34:07 +0000
Subject: Re: content-type:text/html
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-384@lists.php.net to get a copy of this message
"Nasir Ali" <nal@mta.ca> wrote in message news:200006101556.MAA18856@nimble.mta.ca... > I tried this and telnet simply showed me the html code for my page and it > goes like this... > ------- > Content-type:text/html > blah blah... > ------- > and I couldn't get out of it, can you guess the error from this??? You didn't quote the most important part, which is the part before the Content-type header. I would expect to see: GET / HTTP/1.0 HTTP/1.0 200 OK Server: <name of your web server> Date: Sat, 10 Jun 2000 17:19:14 GMT X-Powered-By: <your PHP version> Content-type: text/html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> rest of your page etc... The Content-type line should be together with the other headers, and there should be a single blank line between them and the page itself. The only thing that would cause the browser to display the Content-type header would be if there were a blank line before it, in which case it would be interpreted as part of the page, not part of the header block. Others have found that if PHP4 is misconfigured it outputs an error message right at the start, including a blank line, moving the Content-type header down into the page body.

« previous php.windows (#384) next »