Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if php 5.4curl can't load?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article is to share with you about how to solve the problem that php 5.4curl cannot be loaded. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

The solution that php5.4 curl cannot load: 1, find the php.ini configuration file under the php installation directory; 2, remove the semicolon before "extension=php_curl"; 3, assign the path of ext to "extension_dir".

This article operating environment: Windows7 system, PHP5.4, Dell G3 computer.

What if php 5.4curl fails to load?

About the solution of the problem that php_curl can't load

In order to test an example of simulating login to a 163mailbox, a big problem was encountered in the process: undefined curl_init functions. Then I went to the Internet to find a lot of solutions, and I tried one by one, but still failed to solve my problem. Until I saw a link to a blog named "PHP Rookie Notes-how to solve the problem of not being able to load dynamic link libraries", it completely solved 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; (comment symbol) sign before extension=php_curl, and find extension_dir to remove the previous comment symbol, and assign the path of ext (this folder in the php installation directory) to extension_dir.

(2) since the operation of php_curl.dll (under the previous ext folder) depends on the libeay32.dll and ssleay32.dll libraries (under the php installation directory), you need to load these two libraries in the configuration file httpd.conf of Apache:

LoadFile "D:/PHP/PHP/libeay32.dll" LoadFile "D:/PHP/PHP/ssleay32.dll"

(3) add the installation directory of php to the environment variable.

Complete the above three steps, if there are any questions. So that's what we're going to talk about:

On the Internet, most people say that the php_curl library depends on libeay32.dll and ssleay32.dll libraries. In fact, if you use the tools to view library dependencies, you will find that it also depends on zlib.dll libraries. So this is the reason why the problem still exists after you have completed the above three steps. The next step is to go to the next zlib.dll library = "http://www.zlib.net/, of course, change the name to zlib.dll after download, and then put it in your php installation directory.

The above is how to solve the problem that php 5.4curl cannot be loaded. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report