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
<-- noted
looks have installed latter one, while need first 1 application.
you can find right extension windows here
Comments
Post a Comment