PHP operation error call to undefined function curl_init () The latest workaround

Source: Internet
Author: User
In fact, in the online very early on this issue, online Baidu, the answer is a uniform, and recently encountered this problem, but Baidu came out of the problem can not solve the problem, so can only turn the wall to find the answer, now will solve the method to share to everyone, there is a need for friends can reference, the following to learn it together.

Previous online workarounds are as follows:

1. Turn on Curl extension in php.ini

2, the PHP directory Libeay32.dll, Ssleay32.dll, Php5ts.dll copy to C:\Windows\System32 inside

(Another way is to add a dynamic-link library to the httpd.conf, such as: LoadFile D:/php/libeay32.dll and LoadFile D:/php/ssleay32.dll, but I tried, and it didn't work)

3. Restart apache,ok!

I don't know if these people have really tried and succeeded, and they share these so-called solutions online. To the end of our new arrivals, Baidu to all the solutions, to the end there is only one, and still can't find the source, and can not really solve the problem.

Recently not too busy, put this problem back out, want to solve, Baidu Baidu ... All right........ Maybe I was too cruel to find the solution above. Helpless, only to help Google ... But under Skynet's restrictions, access to Google also became difficult. So various find Fq ... The preparation work consumes n more time ....

On the Google, although there are the above-mentioned solutions, fortunately, not only in the only one, in the Internet to find another kind of program, is suitable for me, to extract down, record, also convenient posterity!!

First of all, My Computer Configuration!

I am a 64-bit WIN10 system, Apache and PHP are their own manual configuration, integrated environment I did not try, do not know whether it works, but feel how much can refer to!

Say the solution!

1. Similarly, turn on curl extension in php.ini

2, in the directory of PHP, find libeay32.dll,libssh2.dll,ssleay32.dll These three files, copy (or cut) paste into, Apache bin directory

3. Restart apache,ok!

The above is the whole content of this article, I hope that everyone's study has helped.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.