lib_memcached.dll 32-bit and 64-bit php extensions
Following the get started guide:
http://www.couchbase.org/products/sdk/membase-php
The php.ini extension for memcached.so seems to be for linux.
The windows version should use something like:
extension=php_memcached.dll
I was able to find php_memcache.dll here:
http://downloads.php.net/pierre/php_memcache-2.2.6-5.3-nts-vc9-x86.zip
Copied the dll here:
C:\Program Files\PHP\v5.3\ext\php_memcache.dll
Edited the php.ini here:
C:\Program Files\PHP\v5.3\php.ini
Added to php.ini:
extension=php_memcache.dll
I can get it to connect if I change the sample code from:
<?php
$mc = new Memcached;
to:
<?php
$mc = new Memcache;
But that's not ideal. I want to use the same windows DLLs that couchbase.org tested with php5.3.
Any chance you could provide me with a download link?
Nice job on the self-service, and thanks for sharing.
Do you need anything else from us?
Perry
Yeah I need a php extension that works on windows for memcached.dll.
C:\Program Files\PHP\v5.3\ext\php_memcached.dll
I can't find a client extension that works with all the supported methods.
Here's a pure php library for memcacheD. It's going to be slower than an extension though.
https://github.com/pompo500/xslib-memcached
I see windows builds for the server. Just not the client.
http://blog.elijaa.org/index.php?post/2010/08/25/Memcached-1.4.5-for-Win...
For anyone referencing this thread via Google, there are two PHP extensions relating to memcache:
* http://us2.php.net/memcache (note the lack of d)
* http://us2.php.net/memcached (note the d)
Memcache (no D) is older and lacks the capabilities of using new memcache methods, but it is usable on Windows machines and is available for download at http://downloads.php.net/pierre/
Memcached (with the D) is newer, but IS NOT AVAILABLE for Windows because Couchbase will not provide the libmemcached.dll file necessary to compile the PHP extension. Progress on developing the extension has not continued since July 2010 (http://trondn.blogspot.com/2010/07/libmemcached-on-win32.html) and Couchbase has acknowledged they will not provide the dll unless some company purchases a "large" subscription to accomplish the "pretty minor blocker" holding back its release.
I wish people would stop mentioning the pure-PHP Memcache option. It exists more of a proof of concept. It is not inter-changeable for either PHP extension and does not have the performance necessary to even be considered a legitimate solution.
Thanks for the info.
I'll use memcache.dll (without the D) for the time being.
http://www.php.net/manual/en/memcache.get.php
get can take an array.
Ecaron, let's be clear that Couchbase is not holding this up...we are not the owners of that project. We do employ Trond, and I've forwarded this request to our engineering management to have it prioritized but there is a long list.
We are prioritizing requests from our subscription customers, I'll make a second inquiry on your behalf though.
perry
Let me get this straight.. In a simple xampp setup you need to use the php_memcache.dll extention to access a couchbase server??
Looks like the extension that I'm using isn't recent enough.
[22-Jul-2011 16:25:06] PHP Fatal error: Call to undefined method Memcache::getMulti()
Where it should exist:
http://www.php.net/manual/en/memcached.getmulti.php