简体   繁体   English

如何在Windows上启用PHP HTTP PECL扩展?

[英]How do I enable the PHP HTTP PECL extension on Windows?

I have an installation of XAMPP version 1.7.3 on Windows 7 x64. 我在Windows 7 x64上安装了XAMPP 1.7.3版。 I want to enable the PHP HTTP extension . 我想启用PHP HTTP扩展 How do I go about doing so? 我该怎么做呢? That is, where to I get the DLL, register it, etc. Thanks in advance. 也就是说,我在哪里获取DLL,注册它等。提前谢谢。

First, download the PECL module from the php website. 首先,从php网站下载PECL模块。

Then unzipp it and copy the file php_http.dll in your PHP extension folder. 然后unzipp它并将文件php_http.dll复制到PHP扩展文件夹中。 Then edit your php.ini file (c:\\WINDOWS\\php.ini) and activate the module : 然后编辑你的php.ini文件(c:\\ WINDOWS \\ php.ini)并激活模块:

extension=php_http.dll

As you are on an earlier PHP Version, you can get the build from: http://downloads.php.net/pierre/ 正如您在早期的PHP版本中所做的那样,您可以从以下网址获取构建: http//downloads.php.net/pierre/

If you upgrade to XAMPP 1.8.3, which uses PHP 5.4, then you should take a look at the closed bug about this found at: bugs.php.net/bug.php?id=62056 如果您升级到使用PHP 5.4的XAMPP 1.8.3,那么您应该查看关于此的已关闭错误: bugs.php.net/bug.php?id = 62056

As per details in the bug comments; 根据bug评论中的细节; I downloaded the ts (thread safe) version for XAMPP 1.8.3 from github.com/stealth35/stealth35.github.com/downloads and listed as "php_http-1.7.4 -5.4-vc9-x86.zip" 我从github.com/stealth35/stealth35.github.com/downloads下载了XAMPP 1.8.3的ts(线程安全)版本,并列为“php_http-1.7.4 -5.4-vc9-x86.zip”

The latest builds can be found at: windows.php.net/downloads/pecl/releases/http/1.7.5/ 最新版本可在以下网址找到: windows.php.net/downloads/pecl/releases/http/1.7.5/

Amoung those links you should find a version specifically for what you need. 在这些链接中,您应该找到专门针对您需要的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM