[PHP] Example PHP shared memory code

2009-05-23 Thread Richard W
Hi I was wondering if anyone has some sample code whereby the PHP script connects to and reads data from some shared memory in Linux, where the shared memory was originally created by a* linux thread (as opposed to some PHP script)*? The example code needs to use shmop_open(...). Thanks in

Re: [PHP] Shared memory - linx and PHP newbie

2009-05-22 Thread Richard W
' of the shared memory is shown: r...@ts7800:shm# cat program.SCShared 9876.5432101.230034.50678.9010002345.678900 5) Is there anything else that can try? Regards, Richard. On Thu, May 21, 2009 at 11:17 PM, Daniel Brown danbr...@php.net wrote: On Thu, May 21, 2009 at 10:15, Richard W

[PHP] Shared memory - linx and PHP newbie

2009-05-21 Thread Richard W
Hi I have a query regarding shared memory created under Linux and then accessing it by PHP script. For my application, I have created a shared memory block in Debian Linux using the shm_open(..), ftruncate(...) and mmap(...) function calls. The shared memory block is of size 6304 bytes long. It