公告
财富商城
积分规则
提问
发文
2019-01-01 03:45发布
何处买醉
How do I enable cURL in PHP?
Check the php version, If you installed php 7.0 version
sudo apt-get install php7.0-curl sudo service apache2 restart
If you installed php 5.6 version
sudo apt-get install php5-curl sudo service apache2 restart
I found the file located at:
C:\xampp\php\php.ini
Uncommented:
;extension=php_curl.dll
For windows OS users (It worked for me) in XAMPP.
step 1: Go to C:\xampp\php\php.ini
edit this file php.ini
find curl- you will see a line ;extension=php_curl.dll.
remove semicolon (;)extension=php_curl.dll. so this line looks like
to
extension=php_curl.dll
step 2: copy ssleay32.dll, libeay32.dll from php folder. paste it in C:\Windows\System32\
step 3: Restart the system . Curl will run successfully.
to install php5-curl under opensuse:
php5-curl
sudo yast2
->software ->software management ->search for curl ->check php5-curl case and accept.
after installation you need to restart apache server
service apache2 restart
最多设置5个标签!
Check the php version, If you installed php 7.0 version
If you installed php 5.6 version
I found the file located at:
Uncommented:
For windows OS users (It worked for me) in XAMPP.
step 1: Go to C:\xampp\php\php.ini
edit this file php.ini
find curl- you will see a line ;extension=php_curl.dll.
remove semicolon (;)extension=php_curl.dll. so this line looks like
to
step 2: copy ssleay32.dll, libeay32.dll from php folder. paste it in C:\Windows\System32\
step 3: Restart the system . Curl will run successfully.
to install
php5-curl
under opensuse:->software ->software management ->search for curl ->check php5-curl case and accept.
after installation you need to restart apache server