shmop_open

int shmop_open(int key, string create_or_attach, int permissions, int size) 
key Unique key for the script’s shared memory segment
create_or_attach Whether to connect to or create a segment
permissions UNIX permissions to give to a created segment
size Size in bytes of the segment to be created

Attaches to or creates a shared memory segment.

Returns:

Shared memory segment ID on success; FALSE on failure

Description:

shmop_open() takes as its first argument a key that it uses to identify the shared memory segment that you want to create or to which you want to attach. Any process can use the same key to attach to this segment, which allows the sharing of the memory. It’s a good idea to attempt to make this key unique to the scripts ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.