You can make a php file just by ending a file with .php dreamweaver or even notepad can create php files. To view the files you need to have a php capable server running, I generally use
wamp server since it auto installs an apache server, mysql, php, and php my admin.