在Windows上安装PHP扩展 [英] Installing PHP extensions on Windows

查看:92
本文介绍了在Windows上安装PHP扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Windows XP Home Edition.我需要安装一些PHP扩展-memcache,APC,.etc.我非常想使用PECL来实现这一目标.问题是PECL认为我的计算机上将装有某些程序是理所当然的.例如,在另一篇文章中,我读到您需要在计算机上安装Microsoft Visual Studio C ++.但是,我下载的Visual Studio的新版本没有msdev.exe,而是使用vcbuild.exe,后者具有完全不同的api,并且无法编译这些模块附带的.dsp文件.

I am using a Windows XP Home Edition. I need to install a few extensions to PHP -- memcache, APC, .etc. And I would very much like to use PECL to make this happen. The problem is PECL takes it for granted that I will have certain programs on my computer. On another post, I read, for instance, that you need to have Microsoft Visual Studio C++ installed on your machine. However, the new version of Visual Studio, which I downloaded, does not have msdev.exe and instead uses vcbuild.exe, which has a completely different api and fails to compile the .dsp files that come with these modules.

所以我试图找到一个脚本,该脚本可以将dsp升级以与vcbuild.exe一起使用...结果证明vcbuild.exe可以做到这一点,但是当然没有成功.

So I tried to find a script that would upgrade the dsp to work with vcbuild.exe...and it turns out vcbuild.exe can do that, but of course that didn't pan out.

我尝试的另一件事是找到Windows的make脚本(nmake2make).但是模块的根文件夹中没有make文件.

Another thing I tried was to find a make script for Windows (nmake2make). But there was no make file in the module's root folder.

我还尝试下载Cygwin和MinGW,以期希望找到一个可以在* nix操作系统中一样简单但无济于事的构建脚本.

I tried also downloading Cygwin and MinGW in hopes of finding a build script that would work as simply as in *nix operating systems, but to no avail.

在Windows计算机上还应如何使用安装PHP扩展?有人可以帮助我摆脱困境吗?

How else do I use install PHP extensions on a Windows machine? Can anyone help me out of this predicament?

推荐答案

所有来到这里的人都可以下载 dll 扩展文件.

For all peoples coming here to download the dll extension files.

这是指向PHP扩展下载链接的链接, http://windows.php.net/download/

This is the link to the PHP extension download link http://windows.php.net/download/

这是要下载的PHP扩展的列表: http://pecl.php. net/package-search.php

And this is a list of PHP extensions to download: http://pecl.php.net/package-search.php

对于核心扩展,或者如果您在pecl.php.net上找不到任何扩展,请从zip http://windows.php.net/download/并查看/ext的内部,并将其复制到本地php/ext文件夹中.

For core extensions, or if you cant find any on pecl.php.net, download PHP from a zip http://windows.php.net/download/ and look inside of /ext and copy them to your local php /ext folder.

这篇关于在Windows上安装PHP扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆