<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.ftok.php',
    1 => 'ftok',
    2 => 'Convertit un chemin et un identifiant de projet en une cl&eacute; System V IPC',
  ),
  'up' => 
  array (
    0 => 'ref.sem.php',
    1 => 'Fonctions S&eacute;maphore',
  ),
  'prev' => 
  array (
    0 => 'ref.sem.php',
    1 => 'Fonctions S&eacute;maphore',
  ),
  'next' => 
  array (
    0 => 'function.msg-get-queue.php',
    1 => 'msg_get_queue',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    '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">Convertit un chemin et un identifiant de projet en une clé System V IPC</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ftok-description">
  <h3 class="title">Description</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">
   Convertit le paramètre <code class="parameter">filename</code>
   d&#039;un fichier existant, et de l&#039;identifiant de projet
   <code class="parameter">proj</code>, en un entier <code class="literal">integer</code> à utiliser
   avec la fonction <span class="function"><a href="function.shmop-open.php" class="function">shmop_open()</a></span> et d&#039;autres fonctions
   System V IPC.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ftok-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   
    <dt><code class="parameter">filename</code></dt>
    <dd>
     <span class="simpara">
      Chemin vers un fichier accessible.
     </span>
    </dd>
   
   
    <dt><code class="parameter">project_id</code></dt>
    <dd>
     <span class="simpara">
      Identifiant du projet. Doit être un seul caractère.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ftok-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   En cas de succès, la valeur retournée sera la valeur de la clé créée,
   sinon, <code class="literal">-1</code> sera retourné.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ftok-seealso">
  <h3 class="title">Voir aussi</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.shmop-open.php" class="function" rel="rdfs-seeAlso">shmop_open()</a> - Cr&eacute;e ou ouvre un bloc de m&eacute;moire partag&eacute;e</span></li>
   <li><span class="function"><a href="function.sem-get.php" class="function" rel="rdfs-seeAlso">sem_get()</a> - Retourne un identifiant de s&eacute;maphore</span></li>
  </ul>
 </div>


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