<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.exec.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'ref.exec.php',
    1 => '程序执行函数',
    2 => '程序执行函数',
  ),
  'up' => 
  array (
    0 => 'book.exec.php',
    1 => '程序执行',
  ),
  'prev' => 
  array (
    0 => 'exec.resources.php',
    1 => '资源类型',
  ),
  'next' => 
  array (
    0 => 'function.escapeshellarg.php',
    1 => 'escapeshellarg',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/exec/reference.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/ref.exec.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ref.exec" class="reference">
  <h1 class="title">程序执行函数</h1>

  <div class="partintro">

   <div class="section" id="exec.notes">
    <h2 class="title">注释</h2>
    <div class="warning"><strong class="warning">警告</strong>
     <p class="para">
      以加锁方式打开的文件（特别是在打开会话时），
      必须在执行后台程序之前关闭。
     </p>
    </div>
   </div>

   <div class="section" id="exec.seealso">
   <h2 class="title">参见</h2>
    <p class="para">
     这些函数和
     <a href="language.operators.execution.php" class="link">执行运算符</a> 是紧密关联的。
    </p>
   </div>

  </div>


























































































 <h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="function.escapeshellarg.php">escapeshellarg</a> — 把字符串转义为可以在 shell 命令里使用的参数</li><li><a href="function.escapeshellcmd.php">escapeshellcmd</a> — shell 元字符转义</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> — 通过 shell 执行命令并将完整的输出以字符串的方式返回</li><li><a href="function.system.php">system</a> — 执行外部程序，并且显示输出</li></ul>
</div>
<?php manual_footer($setup); ?>