Re: [PHP] Shared Memories in PHP

2004-09-10 Thread Curt Zirzow
* Thus wrote Chidanand: > > I have a requirement where in i have to access shared > memory allocated by some C process. Can i do this in > PHP? > > I am trying out some thing like this. > I want to access the existing shared memory. > > $shm_id = ftok("/tmp/", 'm'); > echo "$shm_id". ""; > $shm

[PHP] Shared Memories in PHP

2004-09-10 Thread Chidanand
I have a requirement where in i have to access shared memory allocated by some C process. Can i do this in PHP? I am trying out some thing like this. I want to access the existing shared memory. $shm_id = ftok("/tmp/", 'm'); echo "$shm_id". ""; $shmid = shmop_open($shm_id, "c", 0644, 164); $shm