Home > Backend Development > PHP Problem > Detailed explanation of php curl configuration method under windows

Detailed explanation of php curl configuration method under windows

藏色散人
Release: 2023-03-04 15:46:01
Original
3594 people have browsed it

Installation method of php curl under windows: first find and open the "php.ini" file; then delete the semicolon in ";extension=php_curl.dll"; finally, change the "libeay32. dll" and other files into system32.

Detailed explanation of php curl configuration method under windows

Recommended: "PHP Video Tutorial"

Configuring php's curl extension in Windows environment

When installing wordpress/zen-cart/magento, I was prompted to open the curl extension, so I opened my php.ini file, found the line ";extension=php_curl.dll", and removed the semicolon in front of it. , the result still doesn’t work, I wrote a piece of code myself, called the curl_init() function to test, the error message is as follows:

Fatal error: Call to undefined function: curl_init()
Copy after login

It seems that the curl extension is still not open, carefully check the PHP manual [XVIII . CURL, Client URL Library Functions] section, it turns out that to open the curl extension in the Windows environment, you also need to copy the two files libeay32.dll and ssleay32.dll to the Windows system directory. The problem is found. Copy these two files to C:/ Windows/System32/ directory, restart Apache, done!

1. Remove the semicolon before extension=php_curl.dll in php.ini;

2. Change libeay32.dll, ssleay32.dll, libssh2.dll in the php folder Move the file into the windows/system32, or windows/syswow64 folder;

The above is the detailed content of Detailed explanation of php curl configuration method under windows. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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