<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Program Execution Functions</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="PHP 手册" HREF="index.html"><LINK REL="UP" TITLE="函数参考" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="printer_write" HREF="function.printer-write.html"><LINK REL="NEXT" TITLE="escapeshellarg" HREF="function.escapeshellarg.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></HEAD ><BODY CLASS="reference" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP 手册</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.printer-write.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.escapeshellarg.html" ACCESSKEY="N" >下一页</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.exec" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >CXXX. Program Execution Functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN188729" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="exec.intro" >简介</A ></H1 ><P > Those functions provide means to execute commands on the system itself, and means to secure such commands. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="exec.requirements" >需求</A ></H1 ><P >要编译本扩展模块无需外部库文件。</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="exec.installation" >安装</A ></H1 ><P >本扩展模块作为 PHP 内核的一部分,无需安装即可使用。</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="exec.configuration" >运行时配置</A ></H1 ><P >本扩展模块在 <TT CLASS="filename" >php.ini</TT > 中未定义任何配置选项。</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="exec.resources" >资源类型</A ></H1 ><P > This extension defines a <TT CLASS="literal" >process</TT > resource, returned by <A HREF="function.proc-open.html" ><B CLASS="function" >proc_open()</B ></A >. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="exec.constants" >预定义常量</A ></H1 ><P >本扩展模块未定义任何常量。</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="exec.seealso" >参见</A ></H1 ><P > These functions are also closely related to the <A HREF="language.operators.execution.html" >backtick operator</A >. Also, while in <A HREF="features.safe-mode.html#ini.safe-mode" >安全模式</A > you must consider the <A HREF="features.safe-mode.html#ini.safe-mode-exec-dir" > safe_mode_exec_dir</A > directive. </P ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >目录</B ></DT ><DT ><A HREF="function.escapeshellarg.html" >escapeshellarg</A > -- Escape a string to be used as a shell argument</DT ><DT ><A HREF="function.escapeshellcmd.html" >escapeshellcmd</A > -- Escape shell metacharacters</DT ><DT ><A HREF="function.exec.html" >exec</A > -- Execute an external program</DT ><DT ><A HREF="function.passthru.html" >passthru</A > -- Execute an external program and display raw output</DT ><DT ><A HREF="function.proc-close.html" >proc_close</A > -- Close a process opened by <A HREF="function.proc-open.html" ><B CLASS="function" >proc_open()</B ></A > and return the exit code of that process.</DT ><DT ><A HREF="function.proc-get-status.html" >proc_get_status</A > -- Get information about a process opened by <A HREF="function.proc-open.html" ><B CLASS="function" >proc_open()</B ></A ></DT ><DT ><A HREF="function.proc-nice.html" >proc_nice</A > -- Change the priority of the current process</DT ><DT ><A HREF="function.proc-open.html" >proc_open</A > -- Execute a command and open file pointers for input/output </DT ><DT ><A HREF="function.proc-terminate.html" >proc_terminate</A > -- Kills a process opened by proc_open</DT ><DT ><A HREF="function.shell-exec.html" >shell_exec</A > -- Execute command via shell and return the complete output as a string</DT ><DT ><A HREF="function.system.html" >system</A > -- Execute an external program and display the output</DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.printer-write.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >起始页</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.escapeshellarg.html" ACCESSKEY="N" >下一页</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >printer_write</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >上一级</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >escapeshellarg</TD ></TR ></TABLE ></DIV ></BODY ></HTML >