If you don’t have SSH on your hosting account, here’s how you can do many of the Bash script functions, from within PHP.
Alternatively, all the good Bash commands you do repeatedly, could be translated into a PHP program to do the entire sequence of steps automatically.
I’m only showing ls and mysql --help but you could use any Bash script command that is supported in your hosting account.
Go to my PHP site to see PHP Accessing SSH in action.
Here’s how to have a Bash shell script run directly via a URL, see lc.lndo.site/date.sh:
Here’s the Bash shell script referenced: (more…)