PHP Developer's Dictionary- P78:PHP is an open source, server-side, HTML-embedded scripting language used to create dynamically generated Web pages. With an easy-to-use syntax and a large, extensible library of modules, PHP brings together the best of Perl, C++, and other languages. | PHP Developer s Dictionary Description The sem_acquire function blocks processing until the semaphore defined by sem_identifier can be acquired. The function returns false 0 if there is an error. Note Remember to release all semaphores after use. Failure to do so will result in a warning. sem_release Syntax int sem_release int sem identifier Description The sem_reiease function releases the semaphore defined by sem identifier . The function returns false 0 if there is an error. shm_attach Syntax int shm_attach int key int memsize int perm Description The shm attach function returns an ID that that can be used to access shared memory defined by key . The optional parameters memsize and perm create the shared memory segment of memsize with permissions defined by perm . The function returns false 0 if an error occurred. Note Calling shm_attach a second time will return a different shared memory ID however both identifiers access the same shared memory. The memsize and perm arguments will be ignored. IT-SC book 385 PHP Developer s Dictionary shm_detach Syntax int shm_detach int shm identifier Description The shm_detach function disconnects shm_identifier . The shared memory shm_attach . The function returns false from the shared memory identified by must have been previously created by 0 on error. shm_remove Syntax int shm remove int shm identifier Description The shm_remove function removes shared memory identified by shm identifier and destroys all data. This function returns false 0 on error. shm_put_var Syntax int shm_put_var int shm identifier int variable key mixed variable Description The shm_put_var function inserts or updates a variable in the shared memory identified by shm_identifier . The defined variabie_key is updated with the value of variable . shm_get_var Syntax IT-SC book 386 PHP Developer s Dictionary mixed shm_get_var int shm identifier int variable key Description The shm_get_var function returns the variable in the shared memory space defined by .