Re: web based chat app

From: Date: Tue, 29 Apr 2008 15:26:20 +0000
Subject: Re: web based chat app
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-273703@lists.php.net to get a copy of this message
On Tue, Apr 29, 2008 at 2:35 AM, paragasu <paragasu@gmail.com> 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

« previous php.general (#273703) next »