Got the script and found the issue.
Somehow the script itself was saved in UTF-8, so unseen to us there was 'stuff' in front of the <?php that looked like this (when viewed in iso-8859-1 font)
<?php
That bit of unseen stuff caused the webserver to send these headers
Date: Fri, 24 Aug 2007 06:12:00 GMT
Server: Apache/1.3.33 (Unix)
X-Powered-By: PHP/4.4.7
Keep-Alive: timeout=2, max=198
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html
200 OK
so the page was sent as text/html, instead of using the text/plain headers in the script.
I opened the convreport.php with notepad, selected all and copied to the clipboard. Closed the file, opened a new file (convreport1.php) with notepad and pasted the contents there, then uploaded the file.
Without the extra few marker bytes in the file, it now works as expected and gives the headers
Date: Fri, 24 Aug 2007 06:15:03 GMT
Server: Apache/1.3.33 (Unix)
Accept-Ranges: bytes
Cache-Control: no-cache, must-revalidate
Connection: close
Pragma: public
X-Powered-By: PHP/4.4.7
Content-Length: 34847
Content-Type: text/plain
X-Pad: avoid browser bug
200 OK
which are what the script said to use (in the header() lines).
Working version at
http://saratoga-weather.org/jwyman/convreport1.php?sce=viewDemo at
http://saratoga-weather.org/jwyman/convreport1.phpWhew, I thought I was going crazy.. sometime what you CAN'T see can make a difference in the output
Best regards,
Ken