Home  >  Article  >  Backend Development  >  How to enable curl_init in php under windows

How to enable curl_init in php under windows

WBOY
WBOYOriginal
2016-07-25 09:07:071262browse
When testing simulated login, the prompt is: "Call to undefined function curl_init". Why does it prompt: There is no defined function? The reason is that php does not open support for the curl_init function.

When testing simulated login, the prompt is: "Call to undefined function curl_init". Why does it prompt: There is no defined function? The reason is that php does not open support for the curl_init function.

Solution: 1. Open php.ini and enable extension=php_curl.dll 2. Check which directory the extension_dir value of php.ini is, and check whether there is php_curl.dll. If not, please download php_curl.dll, and then copy libeay32.dll and ssleay32.dll in the php directory to c:windowssystem32.



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