ftok (PHP 4 >= 4.2.0, PHP 5) ftok -- Convert a pathname and a project identifier to a System V IPC key Description intftok( string pathname, string proj ) The function converts thepathnameof an existing accessible file and a project identifier (proj) into aintegerfor use with for ...
Returns a positive semaphore identifier on success, or FALSE on error. A second call to sem_get() for the same key will return a different semaphore identifier, but both identifiers access the same underlying semaphore. See also sem_acquire(), sem_release(), and ftok(). 后退...
ftok ( string $pathname , string $proj ) 手冊上給出的解釋是:Convert a pathname and a project identifier to a System V IPC key。這個函數(shù)返回的鍵值唯一對應linux系統(tǒng)中一個消息隊列。在獲得消息隊列的引用之前都需要調(diào)用這個函數(shù)。 msg_get_queue ( int $key [, int $perms ] ) ...
例子1. Create a new shared memory block <?php$shm_key = ftok(__FILE__, 't');$shm_id = shmop_open($shm_key, "c", 0644, 100);?> This example opened a shared memory block with a system id returned by ftok(). 后退 起點 前進 shmop_delete 上一級 shmop_read...