Executing External Applications Using exec() : exec « Utility Function « PHP





Executing External Applications Using exec()

 
<?php
        exec("ls /foo/", $output, $return_val);
        echo "Exit code of: $return_val\n";
?>
  
  

Related examples in the same category

1.string exec ( string command [, array &output; [, int &return;_val]] ) runs an external program
2.Using exec() to Produce a Directory Listing