check your http.conf file to make sure you have the following line added:
AddType application/x-httpd-php3 .php3
if its not add it and save.. without that the php file will not be run by apache as a php file, but as a text file.. and you will see the source rather than the program you intended. The above line is telling apache to recognize .php3 as a php file i have my system set up so that a .php3 file is run through the server, and a .php file allows the user to view the source of a few files i have available to view...