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

2009-05-22 Thread Richard W
Thanks Daniel for your suggestions. What I have found are: 1) I'm assuming the key is good. A value of 1947143245 is returned. 2) I have set the permission of the shared memory (program.SCShared) to 777 octal (full read/write/execute access). The group and owner of the file is my login

[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

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

2009-05-21 Thread Daniel Brown
On Thu, May 21, 2009 at 10:15, Richard W rw180...@gmail.com wrote: Any help will be greatly appreciated, especially answering 2) as to why I can't read the data. Are you certain that the problem lies within the shmop reading? Check to see if the file is actually being accessed properly,