Question

I have winginx on my windows machine which comes with memcached server and module. I have it running on port 11211. I have xampp on my machine as well and I need to connect to the memcached server through xampp. I used this tutorial to add the php_memcache extension to my php-xampp. Also, referenced here and here at stackoverflow. I have xampp version 1.7.4 with PHP 5.3.5 (VC6 X86 32bit).

I still get the error "class Memcache not found" or "call to undefined function memcache_connect()". Is there a problem with the php_memcache dll I am using - I have tried both x86 and 64 bit versions?

Any help is appreciated.

Was it helpful?

Solution

The issue was with the compiler versions mismatch(I had vc6 for php and memcache was build from vc9). One of the posts from this discussion states php has dropped support for vc6, so I reinstalled xampp which had php 5.4 with vc9. Used the memcache dll in http://windows.php.net/downloads/pecl/releases/memcache/3.0.6/php_memcache-3.0.6-5.4-ts-vc9-x86.zip and everythin worked fine!

Thanks for the help.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top