【发布时间】:2025-12-27 17:00:13
【问题描述】:
我已经在 Windows 7 中安装了 memcached 二进制文件并将其作为服务器启动。
当我输入 wmic process get description, exetuablepath | findstr memcached.exe 我得到响应:memcached.exe c:\memcached\memcached.exe 在命令行上。
当我尝试在 php.net 上运行示例代码时,我进入了我的浏览器:
致命错误:在第 3 行的 C:\DocumentRoot\Framework\index.php 中找不到类“Memcache”调用堆栈:0.0010 335928 1. {main}() C:\DocumentRoot\Framework\index. php:0
那么,我做错了什么?我正在使用 memcache.dll,因为我相信 Windows 不存在 memcached.dll?
【问题讨论】:
-
希望您已启用扩展! :)
-
我有.. 仍然没有运气。我应该准确下载哪个 dll?
-
你确定扩展已经加载了吗?检查
phpinfo()并查看它是否已列出。 -
你有什么错误吗?还是 dll 显示在 phpinfo 中?
-
检查 apache 错误日志中的错误信息! dll 应该使用与 php 相同的编译器。 (VC9 或 VC6)顺便说一句,memcache.dll 很好