Amir Khawaja
Amir Khawaja

Reputation: 469

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. 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.

Upvotes: 10

Views: 20319

Answers (2)

Dave Goodchild
Dave Goodchild

Reputation: 372

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.

Upvotes: 5

silent
silent

Reputation: 3923

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

Upvotes: 10

Related Questions