note 31741 added to function.sem-get

From: Date: Fri, 02 May 2003 05:36:12 +0000
Subject: note 31741 added to function.sem-get
Groups: php.notes 
Request: Send a blank email to php-notes+get-47372@lists.php.net to get a copy of this message
<? // thanks to // http://www.ecst.csuchico.edu/~beej/guide/ipc/shmem.html $SHM_KEY = ftok("/home/joeldg/homeymail/shmtest.php", 'R'); $shmid = sem_get($SHM_KEY, 1024, 0644 | IPC_CREAT); $data = shm_attach($shmid, 1024); $data = "test"; printf("shared contents: %s\n", $data); shm_detach($data); ?> -- http://www.php.net/manual/en/function.sem-get.php http://master.php.net/manage/user-notes.php?action=edit+31741 http://master.php.net/manage/user-notes.php?action=delete+31741 http://master.php.net/manage/user-notes.php?action=reject+31741

« previous php.notes (#47372) next »