⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.shm-attach.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Creates or open a shared memory segment</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.sem-remove.html">sem_remove</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.shm-detach.html">shm_detach</a></div> <div class="up"><a href="ref.sem.html">Semaphore Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.shm-attach" class="refentry"> <div class="refnamediv">  <h1 class="refname">shm_attach</h1>  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">shm_attach</span> &mdash; <span class="dc-title">Creates or open a shared memory segment</span></p> </div>  <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">int</span> <span class="methodname"><b><b>shm_attach</b></b></span>    ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$key</tt></span>   [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$memsize</tt></span>   [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$perm</tt></span>  ]] )</div>  <p class="para rdfs-comment">   <b>shm_attach()</b> returns an id that can be used to access   the System V shared memory with the given <i><tt class="parameter">key</tt></i>, the   first call creates the shared memory segment with    <i><tt class="parameter">memsize</tt></i> and the optional perm-bits    <i><tt class="parameter">perm</tt></i>.  </p>  <p class="para">   A second call to <b>shm_attach()</b> for the same   <i><tt class="parameter">key</tt></i> will return a different shared memory   identifier, but both identifiers access the same underlying   shared memory. <i><tt class="parameter">memsize</tt></i> and   <i><tt class="parameter">perm</tt></i> will be ignored.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">key</tt></i></span>     <dd>      <p class="para">       A numeric shared memory segment ID      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">memsize</tt></i></span>     <dd>      <p class="para">       The memory size. If not provided, default to the       <i>sysvshm.init_mem</i> in the <var class="filename">php.ini</var>, otherwise 10000       bytes.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">perm</tt></i></span>     <dd>      <p class="para">       The optional permission bits. Default to 0666.      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns a shared memory segment identifier.  </p> </div> <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="function.shm-detach.html" class="function" rel="rdfs-seeAlso">shm_detach()</a></li>    <li class="member"><a href="function.ftok.html" class="function" rel="rdfs-seeAlso">ftok()</a></li>   </ul>  </p> </div>  </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.sem-remove.html">sem_remove</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.shm-detach.html">shm_detach</a></div> <div class="up"><a href="ref.sem.html">Semaphore Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -