Function call undefined function curl_init ()

I am using 64-bit Win OS, php 5.6.8, using Eclipse PDT for PHP development.

I ran into this error calling undefined function curl_init ().

I deleted the ;previous one extension=php_curl.dllin php.ini . Rebooted the Apache server, but still getting the same error.

Any hint where I'm wrong?

+4
source share
5 answers

I had the same problem and after several hours I found a message here:

http://php.net/manual/curl.installation.php

: " php 5.6.9 Windows 7 x64 cURL . phpinfo.php. deplister.exe php ( D:\xampp\php) libeay32.dll, libssh2.dll, ssleay32.dll c:\xampp\apache\bin ( apache\bin), Apache , Apache . "

.

, ?: -)

+23

, , . , , , .

, .

( undefined curl_init() php7) :

,

Apache

/var/log/apache2/error.log

, ,

/usr/lib/php/20151012/php_curl.so

, "php_"

/usr/lib/php/20151012/curl.so

, /

/etc/php/7.0/cli/conf.d/20-curl.ini 

extension=php_curl.so

extension=curl.so
+3

php PATH.....;)

0

PHP 7.2.4 Apache 2.4.33, Windows 10x64, : undefined curl_init(). php.ini , php_curl . , .

, PHP PATH ( C:\php) httpd ( Apache2.4 ).

0

2 :

  1. php.ini ; ;extension=curl ( ). Linux curl, .
  2. 3 : libeay32.dll, libssh2.dll, ssleay32.dll. {Apache Folder}/bin. Apache.

You can link to this link if you need https://www.php.net/manual/en/curl.installation.php

Now everything is all right.

0
source

All Articles