Solution to Call to undefined function curl_init
Environment: windows php+apache Error: Call to undefined function curl_init Solution: First, open php.ini, find "extension=php_curl.dll", then remove the previous ";" comment and restart apache. If the problem persists, first check which directory the extension_dir value of php.ini is, and check whether there is php_curl.dll in that directory. If not, download php_curl.dll, and then copy libeay32.dll and ssleay32.dll in the php directory to c :windowssystem32, and then restart apache. |