Well I'm getting a parse error on "?>". Since I know I didn't type that wrong, it doesn't give me a good idea of where to check, what are the possibilities?
What is the exact error that you are getting? If it is something like "unexpected $end" then you probably forgot a } somewhere.