Not sure what the issue is here. But I can load php files in some directories and they run fine, but in others they give me an option to download the file rather than running it.
What OS? what is the link that you go to that asks to download the file? Where does that link to on the local system. Does your httpd.conf file have a reference for it, or any root level folder?