PHP 4.0 Bug #4689: ISAPI module doesn't send header, PHP.EXE works fine.
| From: | jkutalek at monetplus dot cz | Date: | Tue, 30 May 2000 07:14:19 +0000 |
| Subject: | PHP 4.0 Bug #4689: ISAPI module doesn't send header, PHP.EXE works fine. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-19731@lists.php.net to get a copy of this message | ||
From: jkutalek@monetplus.cz
Operating system: WinNT4.0 SP6 PWS2.0
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Other
Bug description: ISAPI module doesn't send header, PHP.EXE works fine.
PHP used on WinNT4.0 SP6, PWS 2.0
ISAPI module doesn't send header, PHP.EXE works fine
My script is:
<?
header("Content-Type: application/x-msexcel");
?>
<HTML>
<HEAD>
<TITLE>Document Title</TITLE>
</HEAD>
<BODY>
<TABLE>
<TR><TD>anebo</TD><TD>4564</TD><TD STYLE =
vnd.ms-excel.numberformat:@>9999999999999999</TD></TR>
<TR><TD>anhjjkhbo</TD><TD>44564</TD><TD STYLE =
vnd.ms-excel.numberformat:@>9999999999999998</TD></TR>
</TABLE>
</BODY>
</HTML>
Output when I use PHP.EXE:
--------------------------
HTTP/1.0 200 OK
Server: Microsoft-PWS/2.0
Date: Tue, 30 May 2000 07:08:33 GMT
X-Powered-By: PHP/4.0.0
Content-Type: application/x-msexcel
<HTML>
<HEAD>
<TITLE>Document Title</TITLE>
</HEAD>
<BODY>
<TABLE>
<TR><TD>anebo</TD><TD>4564</TD><TD STYLE =
vnd.ms-excel.numberformat:@>9999999999999999</TD></TR>
<TR><TD>anhjjkhbo</TD><TD>44564</TD><TD STYLE =
vnd.ms-excel.numberformat:@>9999999999999998</TD></TR>
</TABLE>
</BODY>
</HTML>
...this is exactly what I want.
But when I turn to ISAPI, I'll get:
-----------------------------------
<HTML>
<HEAD>
<TITLE>Document Title</TITLE>
</HEAD>
<BODY>
<TABLE>
<TR><TD>anebo</TD><TD>4564</TD><TD STYLE =
vnd.ms-excel.numberformat:@>9999999999999999</TD></TR>
<TR><TD>anhjjkhbo</TD><TD>44564</TD><TD STYLE =
vnd.ms-excel.numberformat:@>9999999999999998</TD></TR>
</TABLE>
</BODY>
</HTML>
Headers missing. Is it correct? Or is it bug?