How to hit button via ssh in php

i create a webpage in php and i want to click the button and hit ssh.
example if i click the button “today date” by clicking the button date of respected day should come and the command should be hit in ssh. please give the solution.

Your question is not clear. Do you want to see date in the browser. ssh and php are two different. They can not be connected the way you want. However, it is possible to store date in a file and later view with cat command over ssh.

actually what i want to do is:
i create a web app in php containing various button…each button has its own function … for e.g when i click the first button , the button should hit command and show the changes in web app as well as in script file… is it possible?? please give me solution.

Please use stackoverflow for this kind of question.