Answers for "execute shell script with php"

PHP
1

php shell script

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

execute script php command line

php php_file.php
// or
php php_file.php > result_file.txt // to display the result of echoes or dumps
Posted by: Guest on January-25-2021

Code answers related to "execute shell script with php"

Browse Popular Code Answers by Language