PHP Ratchet: Class Memcache not found -


i following ratchet's tutorials. sessionprovider page, code this:

<?php // shell script use ratchet\session\sessionprovider; use symfony\component\httpfoundation\session\storage\handler; use ratchet\app;  $memcache = new memcache; // class not found on line 7 $memcache->connect('localhost', 11211);  $session = new sessionprovider(     new myapp   , new handler\memcachesessionhandler($memcache) );  $server = new app('localhost'); $server->route('/sessdemo', $session); $server->run(); 

php throws fatal error when run script in command-line:

class memcache not found in on line 7

this code placed in bin\chat-server.php

wierd stuff

the class not available chat-server.php script.

there 2 distinct php extensions service memcached:

  • memcache
  • memcached <-- note d

looks have installed latter one, while need first 1 application.

you can find right extension windows here


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -