Home  >  Article  >  Backend Development  >  How to solve the problem that curl_init() function is not available in php

How to solve the problem that curl_init() function is not available in php

WJ
WJOriginal
2020-06-09 17:07:032272browse

How to solve the problem that curl_init() function is not available in php

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

How to solve the problem that curl_init() function is not available in php

The solution is as follows:

1. Findc:\php\php.iniFile
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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn