Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

lib_memcached.dll 32-bit and 64-bit php extensions

9 replies [Last post]
  • Login or register to post comments
Thu, 07/21/2011 - 18:03
tgraupmann
Offline
Joined: 07/21/2011
Groups: None

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?

Top
  • Login or register to post comments
Fri, 07/22/2011 - 13:44
tgraupmann
Offline
Joined: 07/21/2011
Groups: None

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

Top
  • Login or register to post comments
Fri, 07/22/2011 - 14:30
perry
Offline
Joined: 10/11/2010
Groups:

Nice job on the self-service, and thanks for sharing.

Do you need anything else from us?

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Fri, 07/22/2011 - 14:32
tgraupmann
Offline
Joined: 07/21/2011
Groups: None

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.

Top
  • Login or register to post comments
Fri, 07/22/2011 - 14:40
tgraupmann
Offline
Joined: 07/21/2011
Groups: None

Here's a pure php library for memcacheD. It's going to be slower than an extension though.
https://github.com/pompo500/xslib-memcached

Top
  • Login or register to post comments
Fri, 07/22/2011 - 14:54
tgraupmann
Offline
Joined: 07/21/2011
Groups: None

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...

Top
  • Login or register to post comments
Fri, 07/22/2011 - 15:10
ecaron
Offline
Joined: 07/22/2011
Groups: None

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.

Top
  • Login or register to post comments
Fri, 07/22/2011 - 15:40
tgraupmann
Offline
Joined: 07/21/2011
Groups: None

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.

Top
  • Login or register to post comments
Mon, 07/25/2011 - 14:44
perry
Offline
Joined: 10/11/2010
Groups:

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

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Thu, 05/03/2012 - 06:54
insubordinate
Offline
Joined: 05/03/2012
Groups: None

Let me get this straight.. In a simple xampp setup you need to use the php_memcache.dll extention to access a couchbase server??

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker