title: Can't get Memcached working in PHP
body: <p>Having issues using the PHP memcached class.</p>
  
  <p>I am running a LAMP environment on Ubuntu 10.10 with Apache 2.2.16 and PHP 5.3.3.
  I have just installed what I thought was memcached, but seems possibly to be memcache?</p>
  
  <p>I can start a new memcache object with: </p>
  
  <pre><code>$m = new Memcache;
  </code></pre>
  
  <p>Which works fine. But when I try and start a memcached object</p>
  
  <pre><code>$m = new Memcached();
  </code></pre>
  
  <p>I get the following error</p>
  
  <pre><code>Fatal error: Class 'Memcached' not found
  </code></pre>
  
  <p>When I run 'ps -A | grep Memcache' through the console, it returns</p>
  
  <pre><code>ben@ben-computer:/tmp$ ps -A | grep memcache
  1214 ?        00:00:00 memcached
  </code></pre>
  
  <p>Showing a running memcached process.
  phpinfo() returns memcache version 2.2.6.</p>
  
  <p>But when I look further into etc folder</p>
  
  <pre><code>ben@ben-computer:/etc/default$ cat memcached 
  # Set this to no to disable memcached.
  ENABLE_MEMCACHED=yes
  </code></pre>
  
  <p>Then when i run php -m it returns memcache.</p>
  
  <p>You kind of get the picture, i have no idea why memcache is running instead of memcached, any help would be great.</p>
  
  <p>Edit: </p>
  
  <p>I think it could be an issue with libmemcached. I installed the libmemcached-dev package, but not sure if that's the same?</p>