How to enable cURL in PHP / XAMPP

Since you're using XAMPP, uncomment the line

;extension=php_curl.dll

in xampp\apache\bin\php.ini, and then restart the Apache service.

NB: In newer XAMPP versions, PHP has moved to root xampp folder xampp\php\php.ini.




steps for windows 7:

  1. ensure that php.ini php engine uses is the one you think it is
  2. ensure extension_dir in php.ini is correctly set to the ext folder
  3. ensure extension=php_curl.dll in the php.ini is uncommented

Finally and maybe the one most people don't know: 4. ensure that there are two files in the windows System32 folder: libeay32.dll ssleay32.dll if not there, you may copy these two files from the php folder


转载:http://stackoverflow.com/questions/1347146/how-to-enable-curl-in-php-xampp

你可能感兴趣的:(How to enable cURL in PHP / XAMPP)