title: Memcache and memcached: "getaddrinfo failed"
body: <p>I have installed memcache and memcached in XAMPP in OSX Mountain Lion. Though non of them appear in <code>phpinfo()</code>.</p>
  
  <p>At the top of my <em><code>index.php</code></em> file I simply include the file:</p>
  
  <pre><code>include 'memcache.php'
  </code></pre>
  
  <p>Then when I enter my website I get a MEMCACHE INFO page that gives me this error:</p>
  
  <blockquote>
    <p>Error message: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known`</p>
  </blockquote>
  
  <p>What am I doing wrong? </p>
  
  <p>Can memcache and memcached be installed without showing up in <code>phpinfo()</code>?</p>