2013-03-04 exec PHP PHP: exec - Manual 指定されたコマンドを実行する。PHPではなく、UNIXやLinuxのコマンドを指定することになる。以下のようにオプション指定も可。 <?php // コマンド結果の最後の行を返します print_r(exec("ps axux | grep ps")); execサンプル