FTOK(3) 1 FTOK(3)
ftok - Convert a pathname and a project identifier to a System V IPC key
SYNOPSIS
int ftok (string $pathname, string $proj)
DESCRIPTION
The function converts the $pathname of an existing accessible file and a project identifier into an integer for use with for example
shmop_open(3) and other System V IPC keys.
PARAMETERS
o $pathname
- Path to an accessible file.
o $proj
- Project identifier. This must be a one character string.
RETURN VALUES
On success the return value will be the created key value, otherwise -1 is returned.
SEE ALSO
shmop_open(3), sem_get(3).
PHP Documentation Group FTOK(3)