How to solve the problem that the curl_init() function is not available in php?
When building a PHP website, the following error occurred when running the program:
Fatal error: Call to undefined function curl_init() in C:\XXX\XXX.php on line 10
Or the curl_init() function cannot be checked
The solution is as follows:
1. Findc:\php\php.ini
File
Search for extension=php_curl.dll
and remove the semicolon in front
2. In c:\php Find the four files php_curl.dll, php5ts.dll, libeay32.dll, and ssleay32.dll in the folder, copy them to c:\windows\system32, and restart the IIS service.
Related references:php tutorial
The above is the detailed content of How to solve the problem that curl_init() function is not available in php. For more information, please follow other related articles on the PHP Chinese website!