Answers for "php how to execute shell command"

PHP
4

php run command line

shell_exec('ls');
// or
exec('ls');
Posted by: Guest on June-23-2020
0

run shell script from php file

echo shell_exec('sh /home/scripts/fix-perm.sh');
Posted by: Guest on December-07-2020

Code answers related to "php how to execute shell command"

Browse Popular Code Answers by Language