Install PHP and a webserver on your local machine.
I have installed the openSA package which contains apache with php as a module as well as other stuff. That can be found at http://www.opensa.org
Also there are other packages like phpTriad, try a search on google.