looking at the code, my guess is that the problem is caused by the blank space at the begining of line 1. on line 1 you have:
" <?php session_start(); ?>"
that blank space needs to be deleted.
if you are still having a problem, try adding the following code at line 1 (beware of blank spaces between code blocks):
to turn on error reporting.