I'm going through a book on PHP and am on a chapter for dealing with MySQL database files. The first example goes through opening the database file and throwing an error when it can't do so. When I try to run it the server appears to stop interpreting PHP as PHP and displays the rest of the block as HTML. I would try to show it on here but the last time I tried the post was rejected.
It's similar to the first example listed on this page:
I have tried it on Linux, Windows, and Tiger with the same results. It's really difficult to try to learn something when you can't get the environment to work properly.