This one gives some details of how to setup the webserver and PHP server on the RPI2, write a simple web page that has some javascript to play with buttons and images, a link to another page with PHP that is set up with a shared memory interface so the PHP code sends data to the C program running on the RPI.