uTools-Manuals/docs/php/getmypid.html
2019-04-08 23:22:26 +08:00

61 lines
2.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>获取 PHP 进程的 ID</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.getmypid" class="refentry">
<div class="refnamediv">
<h1 class="refname">getmypid</h1>
<p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">getmypid</span> &mdash; <span class="dc-title">获取 PHP 进程的 ID</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.getmypid-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>getmypid</strong></span>
( <span class="methodparam">void</span>
) : <span class="type">int</span></div>
<p class="para rdfs-comment">
获取当前 PHP 进程 ID。
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.getmypid-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
返回当前 PHP 进程 ID或在错误时返回 <strong><code>FALSE</code></strong>
</p>
</div>
<div class="refsect1 notes" id="refsect1-function.getmypid-notes">
<h3 class="title">注释</h3>
<div class="warning"><strong class="warning">Warning</strong>
<p class="para">
进程 ID 并不是唯一的,所以他们是一个弱熵源。
对安全性有依赖的上下文中我们不推荐依赖于 pid。
</p>
</div>
</div>
<div class="refsect1 seealso" id="refsect1-function.getmypid-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="getmygid.html" class="function" rel="rdfs-seeAlso">getmygid()</a> - 获取当前 PHP 脚本拥有者的 GID</span></li>
<li class="member"><span class="function"><a href="getmyuid.html" class="function" rel="rdfs-seeAlso">getmyuid()</a> - 获取 PHP 脚本所有者的 UID</span></li>
<li class="member"><span class="function"><a href="get_current_user.html" class="function" rel="rdfs-seeAlso">get_current_user()</a> - 获取当前 PHP 脚本所有者名称</span></li>
<li class="member"><span class="function"><a href="getmyinode.html" class="function" rel="rdfs-seeAlso">getmyinode()</a> - 获取当前脚本的索引节点inode</span></li>
<li class="member"><span class="function"><a href="getlastmod.html" class="function" rel="rdfs-seeAlso">getlastmod()</a> - 获取页面最后修改的时间</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>