function.proc-get-status.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 168 行
HTML
168 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Get information about a process opened by proc_open</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.proc-close.html">proc_close</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.proc-nice.html">proc_nice</a></div> <div class="up"><a href="ref.exec.html">Program execution Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.proc-get-status" class="refentry"> <div class="refnamediv"> <h1 class="refname">proc_get_status</h1> <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">proc_get_status</span> — <span class="dc-title">Get information about a process opened by <a href="function.proc-open.html" class="function">proc_open()</a></span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><b><b>proc_get_status</b></b></span> ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$process</tt></span> )</div> <p class="para rdfs-comment"> <b>proc_get_status()</b> fetches data about a process opened using <a href="function.proc-open.html" class="function">proc_open()</a>. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">process</tt></i></span> <dd> <p class="para"> The <a href="function.proc-open.html" class="function">proc_open()</a> <a href="language.types.resource.html" class="type resource">resource</a> that will be evaluated. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> An <a href="language.types.array.html" class="type array">array</a> of collected information on success, and <b><tt>FALSE</tt></b> on failure. The returned array contains the following elements: </p> <p class="para"> <table class="informaltable"> <colgroup> <thead valign="middle"> <tr valign="middle"><th colspan="1">element</th><th colspan="1">type</th><th colspan="1">description</th></tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">command</td> <td colspan="1" rowspan="1" align="left"><a href="language.types.string.html" class="type string">string</a></td> <td colspan="1" rowspan="1" align="left"> The command string that was passed to <a href="function.proc-open.html" class="function">proc_open()</a>. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">pid</td> <td colspan="1" rowspan="1" align="left"><a href="language.types.integer.html" class="type int">int</a></td> <td colspan="1" rowspan="1" align="left">process id</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">running</td> <td colspan="1" rowspan="1" align="left"><a href="language.types.boolean.html" class="type bool">bool</a></td> <td colspan="1" rowspan="1" align="left"> <b><tt>TRUE</tt></b> if the process is still running, <b><tt>FALSE</tt></b> if it has terminated. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">signaled</td> <td colspan="1" rowspan="1" align="left"><a href="language.types.boolean.html" class="type bool">bool</a></td> <td colspan="1" rowspan="1" align="left"> <b><tt>TRUE</tt></b> if the child process has been terminated by an uncaught signal. Always set to <b><tt>FALSE</tt></b> on Windows. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">stopped</td> <td colspan="1" rowspan="1" align="left"><a href="language.types.boolean.html" class="type bool">bool</a></td> <td colspan="1" rowspan="1" align="left"> <b><tt>TRUE</tt></b> if the child process has been stopped by a signal. Always set to <b><tt>FALSE</tt></b> on Windows. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">exitcode</td> <td colspan="1" rowspan="1" align="left"><a href="language.types.integer.html" class="type int">int</a></td> <td colspan="1" rowspan="1" align="left"> The exit code returned by the process (which is only meaningful if <i>running</i> is <b><tt>FALSE</tt></b>). Only first call of this function return real value, next calls return <i>-1</i>. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">termsig</td> <td colspan="1" rowspan="1" align="left"><a href="language.types.integer.html" class="type int">int</a></td> <td colspan="1" rowspan="1" align="left"> The number of the signal that caused the child process to terminate its execution (only meaningful if <i>signaled</i> is <b><tt>TRUE</tt></b>). </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">stopsig</td> <td colspan="1" rowspan="1" align="left"><a href="language.types.integer.html" class="type int">int</a></td> <td colspan="1" rowspan="1" align="left"> The number of the signal that caused the child process to stop its execution (only meaningful if <i>stopped</i> is <b><tt>TRUE</tt></b>). </td> </tr> </tbody> </colgroup> </table> </p> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.proc-open.html" class="function" rel="rdfs-seeAlso">proc_open()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.proc-close.html">proc_close</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.proc-nice.html">proc_nice</a></div> <div class="up"><a href="ref.exec.html">Program execution Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?