How to enable cURL in PHP / XAMPP

2019-01-01 03:45发布

How do I enable cURL in PHP?

​​

标签: php curl xampp
16条回答
与风俱净
2楼-- · 2019-01-01 04:04

Since XAMPP went through some modifications, the file is now at xampp/php/php.ini.

查看更多
伤终究还是伤i
3楼-- · 2019-01-01 04:06

In SUSE Linux:

zypper in php5-curl
rcapache2 restart
查看更多
残风、尘缘若梦
4楼-- · 2019-01-01 04:08

If you're are using MAMP, cURL is enabled by default.

查看更多
低头抚发
5楼-- · 2019-01-01 04:10

Actually I did it by uncommenting extension=php_curl.dll in the xampp\apache\bin\php.ini file.

查看更多
深知你不懂我心
6楼-- · 2019-01-01 04:12

Basic tip: After enabling the CURL in php.ini file, you need to restart the web server to make it work (my experience says).

查看更多
无与为乐者.
7楼-- · 2019-01-01 04:13

Steps for Windows 7:

  1. Ensure that the php.ini file that the 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 these two files in the Windows System32 folder: libeay32.dll ssleay32.dll If not there, you may copy these two files from the php folder.

查看更多
登录 后发表回答