Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 9177

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>proc_get_status</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="Program Execution Functions"
HREF="ref.exec.html"><LINK
REL="PREVIOUS"
TITLE="proc_close"
HREF="function.proc-close.html"><LINK
REL="NEXT"
TITLE="proc_nice"
HREF="function.proc-nice.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="refentry"
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.proc-close.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.proc-nice.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.proc-get-status"
></A
>proc_get_status</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN189064"
></A
><P
>    (PHP 5)</P
>proc_get_status&nbsp;--&nbsp;Get information about a process opened by <A
HREF="function.proc-open.html"
><B
CLASS="function"
>proc_open()</B
></A
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN189068"
></A
><H2
>说明</H2
>array <B
CLASS="methodname"
>proc_get_status</B
> ( resource process )<BR
></BR
><P
>&#13;   <B
CLASS="function"
>proc_get_status()</B
> fetches data about a
   process opened using <A
HREF="function.proc-open.html"
><B
CLASS="function"
>proc_open()</B
></A
>.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN189079"
></A
><H2
>参数</H2
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>process</CODE
></DT
><DD
><P
>&#13;       The <A
HREF="function.proc-open.html"
><B
CLASS="function"
>proc_open()</B
></A
> <A
HREF="language.types.resource.html"
><B
CLASS="type"
>resource</B
></A
> that will
       be evaluated.
      </P
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN189090"
></A
><H2
>返回值</H2
><P
>&#13;   An <A
HREF="language.types.array.html"
><B
CLASS="type"
>array</B
></A
> of collected information on success, and <TT
CLASS="constant"
><B
>FALSE</B
></TT
>
   on failure. The returned array contains the following elements:
  </P
><P
>&#13;  <DIV
CLASS="informaltable"
><P
></P
><A
NAME="AEN189096"
></A
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><COL><THEAD
><TR
><TH
>element</TH
><TH
>type</TH
><TH
>description</TH
></TR
></THEAD
><TBODY
><TR
><TD
>command</TD
><TD
><A
HREF="language.types.string.html"
><B
CLASS="type"
>string</B
></A
></TD
><TD
>&#13;       The command string that was passed to <A
HREF="function.proc-open.html"
><B
CLASS="function"
>proc_open()</B
></A
>.
      </TD
></TR
><TR
><TD
>pid</TD
><TD
><A
HREF="language.types.integer.html"
><B
CLASS="type"
>int</B
></A
></TD
><TD
>process id</TD
></TR
><TR
><TD
>running</TD
><TD
><A
HREF="language.types.boolean.html"
><B
CLASS="type"
>bool</B
></A
></TD
><TD
>&#13;       <TT
CLASS="constant"
><B
>TRUE</B
></TT
> if the process is still running, <TT
CLASS="constant"
><B
>FALSE</B
></TT
> if it has
       terminated.
      </TD
></TR
><TR
><TD
>signaled</TD
><TD
><A
HREF="language.types.boolean.html"
><B
CLASS="type"
>bool</B
></A
></TD
><TD
>&#13;       <TT
CLASS="constant"
><B
>TRUE</B
></TT
> if the child process has been terminated by
       an uncaught signal. Always set to <TT
CLASS="constant"
><B
>FALSE</B
></TT
> on Windows.
      </TD
></TR
><TR
><TD
>stopped</TD
><TD
><A
HREF="language.types.boolean.html"
><B
CLASS="type"
>bool</B
></A
></TD
><TD
>&#13;       <TT
CLASS="constant"
><B
>TRUE</B
></TT
> if the child process has been stopped by a
       signal. Always set to <TT
CLASS="constant"
><B
>FALSE</B
></TT
> on Windows.
      </TD
></TR
><TR
><TD
>exitcode</TD
><TD
><A
HREF="language.types.integer.html"
><B
CLASS="type"
>int</B
></A
></TD
><TD
>&#13;       The exit code returned by the process (which is only
       meaningful if <TT
CLASS="literal"
>running</TT
> is <TT
CLASS="constant"
><B
>FALSE</B
></TT
>).
       Only first call of this function return real value, next calls return
       <TT
CLASS="literal"
>-1</TT
>.
      </TD
></TR
><TR
><TD
>termsig</TD
><TD
><A
HREF="language.types.integer.html"
><B
CLASS="type"
>int</B
></A
></TD
><TD
>&#13;       The number of the signal that caused the child process to terminate
       its execution (only meaningful if <TT
CLASS="literal"
>signaled</TT
> is <TT
CLASS="constant"
><B
>TRUE</B
></TT
>).
      </TD
></TR
><TR
><TD
>stopsig</TD
><TD
><A
HREF="language.types.integer.html"
><B
CLASS="type"
>int</B
></A
></TD
><TD
>&#13;       The number of the signal that caused the child process to stop its
       execution (only meaningful if <TT
CLASS="literal"
>stopped</TT
> is <TT
CLASS="constant"
><B
>TRUE</B
></TT
>).
      </TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN189158"
></A
><H2
>参见</H2
><P
>&#13;   <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
><A
HREF="function.proc-open.html"
><B
CLASS="function"
>proc_open()</B
></A
></TD
></TR
></TBODY
></TABLE
><P
></P
>
  </P
></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.proc-close.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.proc-nice.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>proc_close</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.exec.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>proc_nice</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>