How to run error Call to undefined function curl_init () in php
This article mainly shows you "how to run error report Call to undefined function curl_init () in php", which is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and learn how to run error report Call to undefined function curl_init () in php.
The previous online solutions are as follows:
1. Open the curl extension in php.ini
2. Copy the libeay32.dll, ssleay32.dll and php5ts.dll in the php directory to c:\ windows\ system32
(another way is to add dynamic link libraries to httpd.conf, such as LoadFile d:/php/libeay32.dll and LoadFile d:/php/ssleay32.dll, but I've tried, and it doesn't work either.)
3. Restart apache,OK!
I don't know if these people have really tried and succeeded, so they share these so-called solutions online. In the end, we newcomers, Baidu to all the solutions, to the end there is only one, and still can not find the source, and can not really solve the problem.
Recently not too busy, put this problem out again, want to solve, Baidu. All right. Maybe I was too clumsy to find the kind of solution above. I have no choice but to turn to Google. But under the restrictions of Skynet, it has become difficult to access Google. So look for FQ.... The preparatory work took more than n time.
After being on Google, although there is also the solution mentioned above, fortunately, it is not only in the only one, to find another solution on the Internet, which is suitable for me, to extract it, record it, but also convenient for future generations!
Let's start with my computer configuration!
I am a 64-bit win10 system, apache and php are manually configured by myself, I did not try the integrated environment, I do not know whether it works, but I think how much can be referred to!
Besides, the solution!
1. Similarly, open the curl extension in php.ini
2. Under the php directory, find the three libeay32.dll,libssh3.dll,ssleay32.dll files, copy (or cut) and paste them into the bin directory of apache.
3. Restart apache,OK!
The above is all the contents of the article "how to run error Call to undefined function curl_init () in php". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!