Apache Web-Serving with Mac OS X: Part 3
Subject:   PHP HTML parsing problem
Date:   2003-08-16 16:36:04
From:   anonymous2
Response to: PHP HTML parsing problem

I had the same problem. My problem was that it wasn't saving the file with the php extension. It added rtf to the end. Read this article

And follow the directions for the TextEdit and after doing the changes make sure you open a new file.