Using the PHP passthru() Function : passthru « Utility Function « PHP






Using the PHP passthru() Function

 
<?php
        passthru("ls", $return_val);
        echo "Exit code of $return_val\n";
?>
  
  








Related examples in the same category

1.Using passthru() to Output Binary Data
2.void passthru ( string command [, int &return_var] ) runs an external program
3.passthru() function works like exec(), except that the command output is automatically output.