本篇文章是对windows环境下php配置memcache的具体操作步骤进行了详细的分析介绍,需要的朋友参考下
首先要安装好php和apache环境。
我用的是wamp整合的套件
php 5.2.8
apache 2.2.1.1
这些都准备好了后,
就到 memcache 官网去下载 windows 下的 memcache.exe 这个程序
然后把他放在 c:\memcache 目录下
打开 cmd 命令 输入
cd c:\memcache
安装
memcache.exe -p install
安装完成后
memcache.exe -p start
成功开启 memcache后
就到 php/ext 目录下 把 php_memcache.dll 放到里面
然后在 php 目录下的 php.ini 增加一段内容
extension=php_memcache.dll
加完之后,美国服务器,香港服务器,重启 apache
然后 在php页面输出phpinfo();
检查 memcache 是否成功加载了。
如果成功加载了 ,美国空间,就可以 在一个php页面做 memcache测试了
//phpinfo();
$memcache = new Memcache;
$memcache->connect('127.0.0.1',11211) or die('shit');
$memcache->set('key','hello memcache!');
$out = $memcache->get('key');
echo $out;
成功的话会输出
hello memcache!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Zend Studio 13.0.1
Powerful PHP integrated development environment

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
