After installing the wamp 2.2e , I have uncommented extension=php_curl.dll in php.ini file at \wamp\bin\apache\apache2.2.22\bin\php.ini and restarted my wamp.

Still curl is not working,it is not visible using phpinfo. I am using windows 7 32 bit operating system.php version on wamp is 5.3.13

I am also getting following error in *apache_error.log* file

    Unable to load dynamic library 'd:/wamp/bin/php/php5.3.13/ext/php_curl.dll' - 
%1 is not a valid Win32 application.\r\n in Unknown on line 0
有帮助吗?

解决方案 4

Re installation and renaming previously existing wamp installation directory worked for me. I was having a lower version of wamp already installed on my system.

其他提示

Seems like you have modified the wrong php.ini. Run the below code, get the location and modify it there

<?php
echo $inipath = php_ini_loaded_file();

and ofcourse.. save it and restart your webserver !

You need to replace library which is shipped with Wamp. It does not work for some reason on win7 x64, use this instead (ofc use version which is correct for your installation):

http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-window

Curl requires these dll's

libeay32.dll
ssleay32.dll

which are in the \wamp\bin\php\phpx.y.z folder but as you are running it under apache you have to copy them to the \wamp\bin\apache\apachex.y.z folder

Try that.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top