I want to know how PHP can run bash scripts.
I mean, I want to pass some variables from a PHP script to a bash script which will run when the submit button is clicked.
Also how can I take output from terminal to php page?
The purpose of this question is to have understanding of making front end in PHP and back end with bash, I want to run command of terminal from PHP page by giving some variables.
Please put me in right direction, I haven't slept for 4 days now, just reading stuff for it, so far I am confused.