PHP Memcached Fatal Error: Class 'Memcache' Not Found

PHP memcached Fatal error: Class 'Memcache' not found

There are two extensions for memcached in PHP, "memcache" and "memcached".

It looks like you're trying to use one ("memcache"), but the other is installed ("memcached").

PHP Ratchet: Class Memcache not found

There are two distinct PHP extensions for the service memcached:

  • memcache
  • memcached <-- note the d

Looks like you have installed the latter one, while you need the first one for your application.

You can find the right extension for Windows here

Do you use design patterns?

Any large program that is well written will use design patterns, even if they aren't named or recognized as such. That's what design patterns are, designs that repeatedly and naturally occur. If you're interfacing with an ugly API, you'll likely find yourself implementing a Facade to clean it up. If you've got messaging between components that you need to decouple, you may find yourself using Observer. If you've got several interchangeable algorithms, you might end up using Strategy.

It's worth knowing the design patterns because you're more likely to recognize them and then converge on a clean solution more quickly. However, even if you don't know them at all, you'll end up creating them eventually (if you are a decent programmer).

And of course, if you are using a modern language, you'll probably be forced to use them for some things, because they're baked into the standard libraries.

Memcache doesn't work in xampp. Class 'Memcache' not found

I just downloaded the newest version of XAMPP and it works. So, don't forget to update to the newest version of XAMPP.



Related Topics



Leave a reply



Submit