Jun 25, 2000, 11:23 AM
Post #2 of 3
Premature end of script headers means the first thing out of your script was something other than a valid header.
Re: premature end of script headers....
[In reply to]
Usually, it'll be an error, so you should check your web logs to see what they say went wrong, and/or try to run the script from a command line.
From your code, the problem appears to be that you don't return anything to the browser, let alone headers.
Also: always, always, always check the return value of open as it'll save you much grief.