every php file i have opens in notepad automatically. What program is it supposed to open in?
PHP files are server side scripts. You can view/edit them on your local computer using any ASCII text editor (including notepad).
To execute them you'll need a working php enabled web server.