<!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>Gets PHP's process ID</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.getmyinode.html">getmyinode</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.getmyuid.html">getmyuid</a></div> <div class="up"><a href="ref.info.html">PHP Options/Info Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.getmypid" class="refentry"> <div class="refnamediv"> <h1 class="refname">getmypid</h1> <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">getmypid</span> — <span class="dc-title">Gets PHP's process ID</span></p> </div> <div class="refsect1 description" id="refsect1-function.getmypid-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><strong>getmypid</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment"> Gets the current PHP process ID. </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.getmypid-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns the current PHP process ID, or <strong><code>FALSE</code></strong> on error. </p> </div> <div class="refsect1 notes" id="refsect1-function.getmypid-notes"> <h3 class="title">Notes</h3> <div class="warning"><strong class="warning">Warning</strong> <p class="para"> Process IDs are not unique, thus they are a weak entropy source. We recommend against relying on pids in security-dependent contexts. </p> </div> </div> <div class="refsect1 seealso" id="refsect1-function.getmypid-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.getmygid.html" class="function" rel="rdfs-seeAlso">getmygid()</a> - Get PHP script owner's GID</span></li> <li class="member"> <span class="function"><a href="function.getmyuid.html" class="function" rel="rdfs-seeAlso">getmyuid()</a> - Gets PHP script owner's UID</span></li> <li class="member"> <span class="function"><a href="function.get-current-user.html" class="function" rel="rdfs-seeAlso">get_current_user()</a> - Gets the name of the owner of the current PHP script</span></li> <li class="member"> <span class="function"><a href="function.getmyinode.html" class="function" rel="rdfs-seeAlso">getmyinode()</a> - Gets the inode of the current script</span></li> <li class="member"> <span class="function"><a href="function.getlastmod.html" class="function" rel="rdfs-seeAlso">getlastmod()</a> - Gets time of last page modification</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.getmyinode.html">getmyinode</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.getmyuid.html">getmyuid</a></div> <div class="up"><a href="ref.info.html">PHP Options/Info Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>