Related examples in the same category1.    string exec ( string command [, array &output [, int &return_val]] ) runs an external program2.    Using exec() to Produce a Directo…" name="description">  Related examples in the same category1.    string exec ( string command [, array &output [, int &return_val]] ) runs an external program2.    Using exec() to Produce a Directo…" property="og:description">

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

 Executing External Applications Using exec()


 
 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