ext.email ext.email - 1 month ago 17
PHP Question

Memcached implementation in php rise error

I am new in php Memcached. I am trying to implement memcached for my application handling thousand of request. But while initialize Memcached class on scripts as follow:

<?php
error_reporting(E_ALL & ~E_NOTICE);
$mc = new Memcached();


Then I am getting following error:

Fatal error: Class 'Memcached' not found in C:\xampp\htdocs\mamecache.php on line 4

I am new on this technologies, why I am getting this please let know?

Answer

Probably you haven't installed memcached on your pc that's why you are getting error.

Please check following post:

HOW TO: Install Memcache on XAMPP (Windows 7/8/10)

Comments