Forum Moderators: phranque
Also, the server detects the "end of header transmission phase" by looking for two newline characters in a row ("\n\n") in the output stream sent to the client. Make sure that you send all headers, each ending with a single newline, and only put two newlines on the very last one.
If you need more help, feel free to post in the PHP scripting forum here at WebmasterWorld.
Jim