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