PHP.nl

ftok

ftok

Convert a pathname and a project identifier to a System V IPC key

int **ftok** string $filename string $project_id

The function converts the of an existing accessible file and a project identifier into an for use with for example and other System V IPC keys. filename``integer``shmop_open

filenamePath to an accessible file.

project_idProject identifier. This must be a one character string.

On success the return value will be the created key value, otherwise is returned. -1

shmop_open``sem_get