Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

php

windows

pecl

I have an installation of XAMPP version 1.7.3 on Windows 7 x64. I want to enable the PHP HTTP extension. How do I go about doing so? That is, where to I get the DLL, register it, etc. Thanks in advance.

like image 288
Amir Khawaja Avatar asked Jan 20 '10 08:01

Amir Khawaja


People also ask

How do I enable PECL?

You have to compile the CGI or CLI version of PHP with --enable-pcntl configuration option when compiling PHP to enable Process Control support.


2 Answers

First, download the PECL module from the php website.

Then unzipp it and copy the file php_http.dll in your PHP extension folder. Then edit your php.ini file (c:\WINDOWS\php.ini) and activate the module :

extension=php_http.dll
like image 186
silent Avatar answered Sep 18 '22 10:09

silent


As you are on an earlier PHP Version, you can get the build from: 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

As per details in the bug comments; 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"

The latest builds can be found at: windows.php.net/downloads/pecl/releases/http/1.7.5/

Amoung those links you should find a version specifically for what you need.

like image 23
Dave Goodchild Avatar answered Sep 21 '22 10:09

Dave Goodchild