Search Results
ftok (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
Simple usage example of `ftok ()`. The ftok function is used in PHP to convert a given pathname and a project identifier into a System V IPC (Inter-Process Communication) key. This key can then be used as an identifier for shared memory segments, message queues, or semaphore sets.
Execute ftok Online. Info and examples on ftok PHP Function from Semaphore, Shared Memory and IPC - Process Control Extensions
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.
It is mentioned in ftok () manual key_t ftok (const char *pathname, int proj_id); The ftok () function uses the identity of the file named by the given pathname (which must refer to an existing,
PHP Manual PHP Manual Function Reference Process Control Extensions Semaphore Semaphore Functions Semaphore Functions msg_get_queue ftok (PHP 4 >= 4.2.0, PHP 5)
People also ask
How does ftok work in PHP?
What is ftok function?
Why does ftok return $key?
Why was ftok() not computed like the original Unix ftok()?
Man page for ftok(3) on php, from the unix.com online archive.
