php - fatal error : Class 'Memcache' not found in

标签 php memcached

对于这一行

$MEM = new Memcache;

我收到此错误“ fatal error :在...中找不到类‘Memcache’”。我把它放在我的 php.ini 中,但仍然没有成功。

extension=memcache.so

这是否意味着我的虚拟主机没有 memcached?我是否必须下载 memcached 并将任何内容上传到服务器才能运行?

最佳答案

这是来自 JustHost 的回复

John H.: [6:28:55 PM] Welcome to our real-time support chat. My name is John H. Please be patient, as I may be assisting multiple customers. Also, please provide your main domain name, and a brief description of the problem or request. Thank you.
ME: [6:28:55 PM] is memcache enable for share host?
[6:30:01 PM] hi
John H.: [6:30:31 PM] Let me see what I can find out for you. Just one moment please.
ME: [6:30:37 PM] thanks
John H.: [6:41:04 PM] I have asked an L2, and am waiting for a response. sorry for the delay.
ME: [6:41:39 PM] no problem
John H.: [6:41:49 PM] no, it's not enabled.
[6:41:52 PM] we don't support it
ME: [6:42:11 PM] ok thank you

我建议您下次使用聊天功能,或者订购新的共享主机并询问代表他们是否启用了 memcached。

关于php - fatal error : Class 'Memcache' not found in,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7218097/

相关文章:

为一致哈希设置选项时,PHP pecl/memcached 扩展变慢

python - 在内存中为 Django-Python 维护一个大字典?

Memcached 写入速度极慢

php - 是否有 PHP 函数可以将单独字段的数组连接成分组字段的数组?

php - 使用 Smarty 模板切换和大小写?

php - 将 mysql 从 5.1 更新到 5.6,但 php 信息仍然显示 5.1 客户端版本

java - 针对给定场景的速率限制算法建议

php mysql 和 memcached

javascript - 如何在 javascript 中循环遍历具有特定键和值的 json 对象?

php - session 问题