PHPスクリプト/exec() の変更点


[[PHPスクリプト]]

*exec() [#dfca70d9]

配列の要素数を求める
外部プログラムを実行する

**書式 [#q6561490]
 string exec ( string command [, array &output [, int &return_var]] )

**例 [#b21c92f7]
 <?php
 exec("ls /home/",$output);
 exec("ps auxw",$output);
 foreache($output as $a){
  print $a."\n";
 }
 ?>