PHP and Curl installation on Windows 2003 server

Posted on 2007-10-17
Last Modified: 2013-12-13
I have a server running Windows 2003 with IIS and PHP.

PHP works fine, unless the page trys to use CURL in which case this warning pops up: Unable to load dynamic library 'c:\php\extensions\php_curl.dll'

I have tried to install CURL and here's what I've done:
1. Verified that php.ini extension_dir is set to "c:\php\extensions"
2. Verified that c:\php\extensions contains the file php_curl.dll
3. Verified that the extension=php_curl.dll line in php.ini is uncommented.

I have also, though I don't know if was needed, copied libeay32.dll and ssleay32.dll to the c:\windows\system32 directory and to the c:\php directory.

After all that, the error still pops up.

I have gone to a command prompt and done a php -m and a few odd things occur.

First, I get this error:
The procedure entry point zend_hex_strtod could not be located in the dynamic link library php5ts.dll.

Second, I get the infamous:
Unable to load dynamic library 'c:\php\extensions\php_curl.dll'

I'm not real familiar with PHP and esspecially not familiar with curl. Any thoughts?
Question by:Xponex
    LVL 48

    Expert Comment

    Are you sure you use the same php_curl.dll that came with the php-installation you made. Looks like the version of the extension does not match to the installed php version?

    Author Comment

    Yes, positive. I even went and re-downloaded it just to be sure.

    Accepted Solution

    I have found the solution, the problem was a corrupted original install. To fix it I totally removed PHP from my server and then did a manual PHP install instead of the automated install. Once I did that and made sure that PHP was working correctly, then I copied the libeay32.dll and ssleay32.dll files to my windows\system32 directory. I also added c:\php to the evirnoment variable PATH. I then set the php.ini extension_dir variable to c:\php\ext and then I uncommented the extension=php_curl.dll line. I was still getting an error, so I rebooted the system, and all is working great now.
    LVL 1

    Expert Comment

    Closed, 500 points refunded.
    Community Support Moderator

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This is a general how to create your own custom plugin system for your PHP application that you designed (or wish to extend a third party program to have plugin functionality that doesn't have it yet).  This is not how to make plugins for existing s…
    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to count occurrences of each item in an array.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now