<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.sem.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.ftok.php',
    1 => 'ftok',
    2 => 'Erzeugt aus einem Dateipfad und einem Projektbezeichner einen System-V-IPC-Schl&uuml;ssel',
  ),
  'up' => 
  array (
    0 => 'ref.sem.php',
    1 => 'Semaphore Funktionen',
  ),
  'prev' => 
  array (
    0 => 'ref.sem.php',
    1 => 'Semaphore Funktionen',
  ),
  'next' => 
  array (
    0 => 'function.msg-get-queue.php',
    1 => 'msg_get_queue',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/sem/functions/ftok.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ftok" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ftok</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ftok</span> &mdash; <span class="dc-title">
   Erzeugt aus einem Dateipfad und einem Projektbezeichner einen System-V-IPC-Schlüssel
  </span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ftok-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ftok</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$filename</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$project_id</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="simpara">
   Diese Funktion erzeugt aus dem <code class="parameter">filename</code> einer
   existierenden Datei und dem Projektbezeichner
   <code class="parameter">project_id</code> einen
   <code class="literal">Integer</code>-Schlüsselwert, der von Funktionen wie
   <span class="function"><a href="function.shmop-open.php" class="function">shmop_open()</a></span> und anderen als System-V-IPC-Schlüssel
   genutzt werden kann.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ftok-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">filename</code></dt>
    <dd>
     <span class="simpara">
      Pfad zu einer existierenden Datei.
     </span>
    </dd>
   
   
    <dt><code class="parameter">project_id</code></dt>
    <dd>
     <span class="simpara">
      Einbuchstabige Projekt-ID.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ftok-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="simpara">
   Bei Erfolg wird der erzeugte Schlüssel zurückgegeben. Im Fehlerfall
   ist der Rückgabewert stattdessen <code class="literal">-1</code>.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ftok-seealso">
  <h3 class="title">Siehe auch</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.shmop-open.php" class="function" rel="rdfs-seeAlso">shmop_open()</a> - Erstellt oder &ouml;ffnet einen gemeinsamen Speicherbereich</span></li>
   <li><span class="function"><a href="function.sem-get.php" class="function" rel="rdfs-seeAlso">sem_get()</a> - Fordert Zugriff auf eine Semaphor-ID an</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>