Re: [PHP] web based chat app



On Tue, Apr 29, 2008 at 2:35 AM, paragasu <paragasu@xxxxxxxxx> wrote:

i believe the sysv-ipc functions in php can give you access to that as
well (dont quote me tho; > im to lazy to look it up atm :))
well, thanks.. i just aware of semaphore function in php. i never see
anyone use this function
yet. and i don't know how to use it .but i have something to find out
then.,


ive used the semaphores; theyre not too bad (but there are some gotchas) and
theyre way faster than file locking. but anyway, regarding the shared
memory stuff, youd probly better spend your time working with an opcode
caches 'user cache'. i know apc and eaccelerator both provide these
mechanisms which is likely very similar to the sysv shared mem. one thing i
discovered, playing around w/ the sysv shared mem is the interface kinda
sucks... everything must be accessed by a unique integer, whereas (at least
in apc [and likely eaccelerator]) you can supply strings as the cache keys.

-nathan