hmm - nasty, nasty windows.
This was the key to the problem:
be aware that at line 6, you have a blank space after the colsing php tag that will cause errors:
you will need to make sure to remove that bank space as well.
When I copy your code directly to my page, it inserts spaces at the end of every line.
Thank you for catching that. It's bad enough we have to look for misplaced comma's and quotes - we have to hunt for trailing spaces too!