I'm having a hell of a time getting Curl to work with PHP/Apache on my Windows XP 64-bit development box. I have PHP and Apache successfully installed, but when I tried to enable Curl I get the following error (twice) from PHP on Apache startup:

"PHP Startup: Unable to load dynamic library 'C:\php\ext\php_curl.dll' - The operating system cannot run %1."

I did uncomment the correct line in PHP.ini. I did move the two DLLs (php_curl.dll and ssleay32.dll) into my PHO root, into my System32, even my apache root - but no matter where I put them, PHP can't find them. I keep getting the error above. Anyone have any idea how to remedy this?

link|improve this question
feedback

2 Answers

You said you put them in the root of your php directory, what about in c:\php\ext like the error message says? What are the permissions on the files?

link|improve this answer
The files have been in there since I installed PHP, and everything is writable. I installed MySQL with no problems. – MarathonStudios Jan 14 '11 at 5:20
feedback

Open php.ini and look to what extension_dir directive point to.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.