Viewing .Php page just appears as code text, and doesnt display correctly in web browser.

i installed apache 2.2 and PHP 5

Apache2.2 is running ok and says running all services.

The "It Works" (index.html in Htdocs) page appears ok, but i can get a simple .php page to open.