doujia6503 2012-08-02 12:24
浏览 22
已采纳

如何在Windows版本的PHP 5.4上使用php_http扩展?

Anyone know how I can get the php_http extension working on php 5.4.5 on windows?

I am trying to upgrade to PHP 5.4.5 on my windows machine (running off IIS). The project I am working on has a dependency of the php_http extension (http://www.php.net/manual/en/book.http.php)

Unfortunately there doesn't appear to be a downloadable DLL file anywhere for a 5.4 compatible version of this extension (see http://php.net/manual/en/http.install.php). Installing via pecl doesn't seem to work for me either, I end up getting this: https://bugs.php.net/bug.php?id=58531

Does anyone know where I can get a DLL for this, or can provide me with other options for getting this extension set up?

Note: 5.3 works fine using the DLL linked to here: http://www.php.net/manual/en/http.install.php#109498

  • 写回答

3条回答 默认 最新

  • dpbfb7119 2012-08-02 12:34
    关注

    Pierre Joye provides Windows builds of various PECL extensions for new versions. If it's not there (which at the time of writing it isn't) you have no option but to get the source (here) and build it yourself.

    Sorry.

    Being that cURL is much more readily available, and can do pretty much everything (if not actually everything) that the HTTP extension can do, I would suggest that you look at migrating your project towards using cURL instead.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 按键修改电子时钟,C51单片机
  • ¥60 Java中实现如何实现张量类,并用于图像处理(不运用其他科学计算库和图像处理库))
  • ¥20 5037端口被adb自己占了
  • ¥15 python:excel数据写入多个对应word文档
  • ¥60 全一数分解素因子和素数循环节位数
  • ¥15 ffmpeg如何安装到虚拟环境
  • ¥188 寻找能做王者评分提取的
  • ¥15 matlab用simulink求解一个二阶微分方程,要求截图
  • ¥30 乘子法解约束最优化问题的matlab代码文件,最好有matlab代码文件
  • ¥15 写论文,需要数据支撑