Réalisées par des traducteurs professionnels, des entreprises, des pages web ou traductions disponibles gratuitement.
remember, that shared memory still exist in the unix system and the data is still present.
shm_detach() は、 shm_attach() で作成され、 指定した shm_identifier を有する共有メモリ への接続を閉じます。 共有メモリは、まだ unix システム上に存在しており、 データはまだ存在するということを覚えておいて下さい。
on success shmop_open() will return an id that you can use to access the shared memory segment you've created.
注意 注意: 既存のメモリセグメントをオープンする場合には、3番目および 4番目の引数には0を指定する必要があります。成功時に shmop_open() は作成した共有メモリセグメントに アクセスするために使用するidを返します。
this example will write data inside $my_string into shared memory block, $shm_bytes_written will contain the number of bytes written.
この例は、共有メモリブロックに $my_string 内のデー タを書き込みます。 $shm_bytes_written には、書 き込んだバイト数が代入されます。
"c" for create (sets ipc_create) use this flag when you need to create a new shared memory segment or if a segment with the same key exists, try to open it for read and write
shmop_open() は次の4つの引数をとります: keyは共 有メモリブロックのシステムidであり、このパラメータは10進数または 16進数で指定することが可能です。2番目のパラメータは flagsであり、 次のものを指定可能です。
it might be more appropiate to use a shared memory based filesystem (such as tmpfs on solaris / linux, or / dev / md on bsd) to store sessions in files, because they are properly locked.
注意 オプションで、ralf s. engelschallにより開発されたセッションの保 存用の共有メモリ(mm)を使用することも可能です。 mm をダウンロードし、インストールす ることができます。このオプションは、windowsプラットフォームでは 利用できません。
"n" create a new memory segment (sets ipc_create_bar_ipc_excl) use this flag when you want to create a new shared memory segment but if one already exists with the same flag, fail.
"a" アクセス用 (ipc_exclを設定する) 既存の共有メモリセグメントをオープンする必要がある場合にこのフ ラグを使用して下さい