Answer the question
In order to leave comments, you need to log in
Why won't Memcached start?
Why doesn't Memcached start in classes?
For example if
$m = new Memcached();
$m->addServer('localhost', 11211);
in a regular file enter works, but if it's in a classclass aaa
{
public function __construct($id)
{
$m = new Memcached();
$m->addServer('localhost', 11211);
gives an error messageFatal error: Uncaught Error: Class 'modules\Memcached' not found in /var/www/html/modules/aaa.php:4
Answer the question
In order to leave comments, you need to log in
gives an error message
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question