I’m a .NET guy, and I do not have experience in PHP development. Things I know about PHP is running WAMP on Windows, programming a little code with PHP and CodeIgniter, that all.
Today, I have to run a APIs from client that have use phpcurl, I try to enable curl in php.in in PHP [wamp]\bin\php\php5.3.13 and [wamp]\apache\apache2.2.22\bin, but there is no luck for me. However, I found out that the problem is from the phpcurl.dll in [wamp]\bin\php\php5.3.13\ext\folder, it doesn’t work with Windows x64. I can’t install Windows 7 32bit on this machine because it has 8GB of memory, so I have two choices:
- Install a virtual machine (Ubuntu, Windows 7 32-bit) and run PHP on that machine
- Google about the issue and until I find a way to solve it
I choose option 2, and luckily, I found a blog article that has updated version of php_curl.dll. I think it is popular issue, however it quite hard to find the solution, so I would like to share to you.
Follow the below steps to fix the issue:
Step 1: Stop WAMP
Step 2: Go to WAMP folder, and open the two php.ini files from [wamp]\bin\php\php5.3.13 and [wamp]\apache\apache2.2.22\bin, change the sentence “;extension=phpcurl.dll” to “extension=phpcurl.dll”.
Step 3: Download the thread safe phpcurl.dll fromhttp://www.mediafire.com/file/qwgdzgccthzwc15/phpcurl-5.3.13-VC9-x64.zip, unzip the zip file and copy php_curl.dll to override the same file on [wamp]\bin\php\php5.3.13\ext folder.
Step 4: Start WAMP and enjoy PHP with curl lib.
Hope this will help you!