(PHP3 >= 3.0.6, PHP4)
Shm_attach---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Create or open a shared memory section
Syntax: int shm_attach (int key [, int memsize [, int perm]])
The ID returned by Shm_attach () can be used to access System V shared memory, and a shared memory memsize part (segment) is established on the first call (preset is php.ini set value in Php3.ini or Sysvshm.init_mem. Otherwise, the 10000 bytes) and the non-essential option perm (Preset is 0666).
The second call to Shm_attach () under the same key will return different shared memory identifier, but all two identifier are accessed under the same shared memory, Memsize and Perm will be ignored.