来自专业的译者、企业、网页和免费的翻译库。
the functions will not work on windows, as it does not support shared memory.
as of windows 2000 though, enabling the php_shmop.dll in your php.ini will enable this functionality though.
最后更新: 2011-10-24
使用频率: 1
质量:
la solución a este problema viene dada por un conjunto de primitivas de la librería estándar conocida como sysv ipc (system v interprocess communication).
the solution to this problem is given by a set of primitives of the standard library known as sysv ipc (system v interprocess communication).
最后更新: 2018-02-13
使用频率: 1
质量:
en el siguiente artículo hablaremos acerca de las colas de mensajes, otra estructura para la comunicación entre procesos (interprocess communication) y sincronización.
in the next article we will speak about message queues, another structure for the interprocess communication and synchronisation.
最后更新: 2018-02-13
使用频率: 1
质量:
shmop is an easy to use set of functions that allows php to read, write, create and delete unix shared memory segments.
these functions will not typically work on windows, as it does not support shared memory.
最后更新: 2011-10-24
使用频率: 1
质量:
?php / / create 100 byte shared memory block with system id if 0xff3 $shm_id = shmop_open( 0xff3, "c", 0644, 100); if(!$shm_id) {echo "couldn't create shared memory segment\n";} / / get shared memory block's size $shm_size = shmop_size($shm_id); echo "shm block size: ".$shm_size. "has been created.\n"; / / lets write a test string into shared memory $shm_bytes_written = shmop_write($shm_id, "my shared memory block", 0); if($shm_bytes_written != strlen("my shared memory block")) {echo "couldn't write the entire length of data\n";} / / now lets read the string back $my_string = shmop_read($shm_id, 0, $shm_size); if(!$my_string) {echo "couldn't read from shared memory block\n";} echo "the data inside shared memory was: ".$my_string ."\n"; / /now lets delete the block and close the shared memory segment if(!shmop_delete($shm_id)) {echo "couldn't mark shared memory block for deletion.} shmop_close($shm_id);?
?php / / create 100 byte shared memory block with system id if 0xff3 $shm_id = shmop_open( 0xff3, "c", 0644, 100); if(!$shm_id) {echo "couldn't create shared memory segment\n";} / / get shared memory block's size $shm_size = shmop_size($shm_id); echo "shm block size: ".$shm_size. "has been created.\n"; / / lets write a test string into shared memory $shm_bytes_written = shmop_write($shm_id, "my shared memory block", 0); if($shm_bytes_written != strlen("my shared memory block")) {echo "couldn't write the entire length of data\n";} / / now lets read the string back $my_string = shmop_read($shm_id, 0, $shm_size); if(!$my_string) {echo "couldn't read from shared memory block\n";} echo "the data inside shared memory was: ".$my_string ."\n"; / /now lets delete the block and close the shared memory segment if(!shmop_delete($shm_id)) {echo "couldn't mark shared memory block for deletion .";} shmop_close($shm_id);?
最后更新: 2011-10-24
使用频率: 1
质量:
警告:包含不可见的HTML格式
一些相关性较低的人工翻译已被隐藏。
显示低相关性结果。