The error is reporting the output at line 1, in office guys link see this section:
Unicode Signature (BOM)
You can identify the cause as being the BOM bug by the error message containing "output starting at line 1"
This problem can happen if you select the option in Dreamweaver to Include Unicode Signature (BOM) On creating New pages or when saving, it is a PHP bug:
to fix the problem, Go to File -> Save As. In the Save As Dialogue box, uncheck the Include Unicode Signature (BOM) option.
you should make sure that this option is not set in Dreamweaver's preferences as well.
Go to Edit -> Preferences, in the new Document section, uncheck the Include Unicode Signature (BOM) option.