<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.fileprocess.process.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'book.exec.php',
    1 => 'プログラムの実行',
    2 => 'システムプログラムの実行',
  ),
  'up' => 
  array (
    0 => 'refs.fileprocess.process.php',
    1 => 'プロセス制御',
  ),
  'prev' => 
  array (
    0 => 'function.posix-uname.php',
    1 => 'posix_uname',
  ),
  'next' => 
  array (
    0 => 'exec.setup.php',
    1 => 'インストール/設定',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/exec/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.exec.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.exec" class="book">
 
 <h1 class="title">システムプログラムの実行</h1>
 
 
 
 <div id="intro.exec" class="preface">
  <h1 class="title">はじめに</h1>
  <p class="para">
   以下の関数は、システム自体の上でコマンドを実行したり、
   こうしたコマンドを安全に実行する手段を提供します。
  </p>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    これらの関数は、Windows ではすべて
    <code class="literal">cmd.exe</code> 経由でコマンドをコールします。
    そのため、これらの関数をコールするユーザーが適切なコマンド実行権限を持っていなければなりません。
    唯一の例外は、<span class="function"><a href="function.proc-open.php" class="function">proc_open()</a></span> を
    <code class="literal">bypass_shell</code> オプションつきでコールする場合です。
   </p>
  </p></blockquote>
 </div>
 

 









 




 




<ul class="chunklist chunklist_book"><li><a href="exec.setup.php">インストール/設定</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="exec.resources.php">リソース型</a></li></ul></li><li><a href="ref.exec.php">プログラム実行関数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.escapeshellarg.php">escapeshellarg</a> — シェル引数として使用される文字列をエスケープする</li><li><a href="function.escapeshellcmd.php">escapeshellcmd</a> — シェルのメタ文字をエスケープする</li><li><a href="function.exec.php">exec</a> — 外部プログラムを実行する</li><li><a href="function.passthru.php">passthru</a> — 外部プログラムを実行し、未整形の出力を表示する</li><li><a href="function.proc-close.php">proc_close</a> — proc_open で開かれたプロセスを閉じ、
  そのプロセスの終了コードを返す</li><li><a href="function.proc-get-status.php">proc_get_status</a> — proc_open で開かれたプロセスに関する情報を取得する</li><li><a href="function.proc-nice.php">proc_nice</a> — 現在のプロセスの優先度を変更する</li><li><a href="function.proc-open.php">proc_open</a> — コマンドを実行し、入出力用にファイルポインタを開く</li><li><a href="function.proc-terminate.php">proc_terminate</a> — proc_open でオープンされたプロセスを強制終了する</li><li><a href="function.shell-exec.php">shell_exec</a> — シェルによりコマンドを実行し、文字列として出力全体を返す</li><li><a href="function.system.php">system</a> — 外部プログラムを実行し、出力を表示する</li></ul></li></ul></div><?php manual_footer($setup); ?>