I’m back and glad to present you script written on PHP for survey. I posted it on github. I appreciate if you will add issues, comments on Github and also fill free to make pull requests.
I’m going to make doc page for the script as well.
UPDATE 03 Dec 2012: I added basic info about the script on github’s readme