I am working on a phpwebsocket application. I have to store the instance of the phpwebsocket every where in my app. I found a solution, that beeing with APC. And it doesn't work. The problem is that if I acces a file with apc_store('foo', 'bar') from a script php that I run on php console, it won't work. If I do a http request (using a browser.. ) it actually works, but I realy have to run the phpwebsocket from php console.
In php.ini :
[APC]
extension=php_apc.dll
apc.enabled = 1
apc.enable_cli = 1
apc.shm_segments = 1
apc.shm_size = 64M
apc.max_file_size = 10M
apc.stat = 1
Thanks.