Name Description
shmop_open() Opens or creates a memory block for sharing
shmop_close() Closes a shared memory block
shmop_delete() Deletes a shared memory block
shmop_read() Reads data from a shared memory block
shmop_write() Writes data to a shared memory block
shmop_size() Gets the size of a shared memory block
<?php
if (!extension_loaded("shmop")) {
dl("php_shmop.dll");
}
$shm_id = shmop_open(0x123, 'a', 0, 0);
if ($shm_id) {
$value = shmop_read($shm_id, 0, 100);
echo "$value";
shmop_close($shm_id);
}
?>
|