I installed memcached by reading this article on Windows7 but unfortunately i keep getting error Fatal error: Class 'Memcache' not found in D:\xampp\htdocs\test\memcache\test.php on line 2
Line 2: $memcache = new Memcache;
Win7 64, Xampp Installed. I am using net start "memcached Server"
on command line but it says service is already started.
Some other info which may help;
On php.ini file:
extension=php_memcache.dll
[Memcache]
memcache.allow_failover = 1
memcache.max_failover_attempts=20
memcache.chunk_size =8192
memcache.default_port = 11211
Update: phpinfo(); show dll is not loaded. Tried several different dll files so far, didn't work. Also dll is located correct. It is in the right folder as it seems.
(P.S. Some may think there are possible duplicates about this topic but there is only 1 person who followed the same instructions and had same error in SO. That question has no answer or solution since march.)
php_memcache.dll
in php extensions folder? – Sabinesabinophp/ext
folder. So it should be there. – Hampton<? phpinfo(); ?>
, do you see your extension loaded? Also, check what extension path does phpinfo() report and see whether your dll is in the right location. – SabinesabinoD:\xampp\php\ext
so it is in the right location. However i tried almost 5 different dll files so far. Still didn't load any of them. – Hampton