About resolving problems that Php_curl cannot load

Source: Internet
Author: User

To test an example of a simulated login 163 mailbox, a big problem has been encountered in this process: undefined curl_init function. And then on the Internet to find, about the solution is a lot of, I also tried, the result still failed to solve my problem. Know to see a link to a blog "PHP rookie notes-How to solve the problem of unable to load the dynamic link library" (http://www.cnblogs.com/perhaps/archive/2010/11/15/1877653.htm) to completely solve my problem. So I want to record.

The undefined curl_init function is caused by a failure to load the Php_curl module. The general solution is:

(1) Find the php.ini configuration file in the PHP installation directory, remove the front of the Extension=php_curl, and find Extension_dir remove the previous comment symbol, put ext (in the PHP installation directory this folder) The path is assigned to Extension_dir.

(2) because Php_curl.dll (under the previous Ext folder) is dependent on the Libeay32.dll and Ssleay32.dll libraries (under the PHP installation directory), the two libraries need to be loaded in Apache configuration file httpd.conf:

" D:/php/php/libeay32.dll "  "d:/php/php/ssleay32.dll"

(3) Add the PHP installation directory to the environment variable.

Complete the above three steps if there is a problem. So that's the next thing to say:

Most of the arguments on the Internet are that the Php_curl library relies on the Libeay32.dll and Ssleay32.dll libraries, but if you use a tool that looks at library dependencies, you will find that it also relies on the Zlib.dll library. So after you've completed the above three steps, the problem still exists because it's here. Next is to go to the next Zlib.dll library = "http://www.zlib.net/, of course, after the download of the name will be changed to Zlib.dll, and then put in your PHP installation directory.

  

About resolving problems that Php_curl cannot load

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.