title: php_memcache extension in wamp
body: <p>I installed the memcached extension service . </p>
  
  <p>Started it using </p>
  
  <blockquote>
    <p>memcached.exe -d start</p>
  </blockquote>
  
  <p>command and it works fine.</p>
  
  <p>Now I added the php_memcache.dll file in </p>
  
  <blockquote>
    <p>php/php5.5.12/ext</p>
  </blockquote>
  
  <p>folder and included the </p>
  
  <blockquote>
    <p>extension=php_memcache.dll </p>
  </blockquote>
  
  <p>in php.ini(Apache's php.ini) file</p>
  
  <p>php_memcache does show up in the php extensions. </p>
  
  <p>Now when I run the below code , it throws a notice saying </p>
  
  <blockquote>
    <p>undefined variable isMemcacheAvailable</p>
  </blockquote>
  
  <p>. So does that mean still memcache is not properly installed ? </p>
  
  <pre><code>if (class_exists('Memcache')) {
      $memcache = new Memcache;
      $isMemcacheAvailable = @$memcache-&gt;connect('127.0.0.1');
      }
  if ($isMemcacheAvailable) {
      echo "yes";
  }
  </code></pre>