i have the same problem. when i use apache i get the code rather than the results, though i haven't tried to display a page with php only and no mysql but i guess i'll have the same problem.
though when i use microsofts personal webserver it displays everything correctly.