in reply to Command Line Output Different from Output to Browser
As far as I can see you start your HTML-Output just with <HTML>.
weini