array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.ftok.php', 1 => 'ftok', ), 'up' => array ( 0 => 'ref.sem.php', 1 => 'Semaphore İşlevleri', ), 'prev' => array ( 0 => 'ref.sem.php', 1 => 'Semaphore İşlevleri', ), 'next' => array ( 0 => 'function.msg-get-queue.php', 1 => 'msg_get_queue', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/sem/functions/ftok.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
ftok — Convert a pathname and a project identifier to a System V IPC key
The function converts the filename
of an existing
accessible file and a project identifier into an
integer
for use with for example
shmop_open() and other System V IPC keys.
filename
Path to an accessible file.
project_id
Project identifier. This must be a one character string.
On success the return value will be the created key value, otherwise
-1
is returned.