I can't be more specific because I don't know what your PHP files look like. There are numerous changes from standard, and I can't tell where they happen.
There are free HTML and CSS validators (Google for them) that will tell you what errors you have, and what line in your output contains them, with suggestions for how to fix them.
http://validator.w3.org/check?uri=ht...Inline&group=0
(The URL errors are not significant for you now, but there are others that you need to fix.)



