Home > Backend Development > PHP Tutorial > 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
Release: 2023-04-08 20:36:02
Original
2470 people have browsed it

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template