Answers for "php call bash script"

PHP
1

php shell script

<?php
$output = shell_exec('cat /etc/hosts');
echo "<pre>$output</pre>";
?>
Posted by: Guest on March-21-2021
0

run shell script from php file

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

Browse Popular Code Answers by Language