note
cbro
The problem (besides the use strict mentioned previously) is your backwards header.
Change "text\html" to "text/html".
The way you have it setup causes both Safari and IE to download the file; Mozilla will print your end_html() output directly to the browser instead of interpreting it as HTML code. When loading your test script with IE, I was able to replicate the error you posted. Correct your header and you should be fine.
469747
469747