Similar to these functions, there is also the backtick ("back-tick") execution operator:
                                                                                 
https://www.php.net/manual/en/language.operators.execution.php                   
                                                                                 
<?php
$output = `ls -al`;
echo "<pre>$output</pre>";
?>                                                                               
This operator runs the command given inside the backticks, and supports string interpolation just like double quotes:
<?php
    $dir = addcslashes(sys_get_tmp_dir(), '"');       
    echo `ls "{$dir}"`;      
?>
 add a note
 add a note