run bash command in php code example
Example 1: php run command terminal
php -r "Print \"Hello, World!\";"
Example 2: run shell script from php file
echo shell_exec('sh /home/scripts/fix-perm.sh');
php -r "Print \"Hello, World!\";"
echo shell_exec('sh /home/scripts/fix-perm.sh');