Home > Article > Backend Development > Solve the problem of failure to open the curl extension of php56
Today I am going to use the curl extension of php. After removing the comment of ;extension=php_curl.dll in php.ini, the error of Call to undefined function curl_init() is still reported after restarting apache. Baidu tried many times and tried many methods, but could not successfully open curl. Finally, I got the prompt from the http://php.net/manual/zh/curl.installation.php page in the official documentation. Just copy libssh2.dll in the php installation directory to the bin directory of apache and restart it. apache, so curl is successfully opened. This incident made me realize the importance of documents, and everyone should pay attention to looking for answers in documents.
Test environment:
httpd-2.4.23-x64-vc11
mysql-5.6.26-winx64
php-5.6.23-Win32-VC11-x64
The above has introduced how to solve the problem of the curl extension of php56 failing to open, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.