为什么不再有像pecl_http这样的PECL扩展的Windows二进制文件? [英] Why are there no longer Windows binaries for PECL extensions like pecl_http?

查看:304
本文介绍了为什么不再有像pecl_http这样的PECL扩展的Windows二进制文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个在Windows上运行的PHP项目,能够使用pecl_http而不是使用cURL并重新发明轮子以便做pecl扩展所做的所有很酷的事情会非常方便比如解析标题等等。

I'm working on a PHP project running on Windows and it would be so very handy to be able to use pecl_http rather than working with cURL and re-inventing the wheel in order to do all the cool stuff the pecl extension does like parsing headers and so forth.

我读到的所有地方(包括PHP网站)都是pecl_http的Windows二进制文件不再与任何PHP安装打包在一起。我无法找到任何解释为什么不在任何地方。此外, http://pecl4win.php.net/ 已经失效多年,我只能假设pecl4win项目已经死了。

Everywhere I read (including the PHP site) is that the Windows binary for pecl_http is no longer packaged with any PHP installation. I can't find any explanation as to why not anywhere. Also, http://pecl4win.php.net/ has been down for ages and I can only assume that the pecl4win project is dead.

有没有人知道发生了什么的故事,以及pecl_http是否可以在WIMP环境中运行?

Does anyone know the story about what happened and if there are any nice alternatives to pecl_http that I can run in a WIMP environment?

推荐答案

试试这个:


首先,下载来自php网站的PECL模块:PECL 5.2.2 Win32二进制文件。

然后解压缩并在PHP扩展文件夹中复制文件 php_http.dll
现在编辑你的php.ini文件(c:\ WINDOWS \ php.ini)并激活模块:
extension = php_http.dll

重启apache并使用phpinfo检查安装。

First, download the PECL module from the php website : PECL 5.2.2 Win32 binaries.
Then unzipp it and copy the file php_http.dll in your PHP extension folder.
Now edit your php.ini file (c:\WINDOWS\php.ini) and activate the module :
extension=php_http.dll
Restart apache and check the installation using phpinfo.

**编辑:**链接: PECL 5.2.6 Windows二进制文件

** ** Link: PECL 5.2.6 Windows Binaries

来源

这篇关于为什么不再有像pecl_http这样的PECL扩展的Windows二进制文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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