converted shell scripts into php files.
Merge pull request #1 from chrisplim/autotest-2242b

converted shell scripts into php files.