PHPCurl function cannot be used in win7 (X64) system environment

Source: Internet
Author: User
The Curl function is not enabled by default in php. if you need to use Curl, we need. in ini, remove extensionphp_curl.dll. first, I put php. extens in ini... the Curl function is not enabled by default in php. if you need to use Curl, we need. in ini, remove extension = php_curl.dll.

I first removed the extension = php_curl.dll in php. ini and restarted the apache environment. the following code is prompted when the following function is called:

 

Error message:Call to undefined function curl_init ()

After reading the relevant articles, I copied three files under the ext directory of PHP: php_curl.dll, libeay32.dll, and ssleay32.dll to the system32 directory of the system, then google found that Windows 7 (x64) has a difference that the built-in php_curl.dll file does not work in a 64-bit Windows 7 environment.

Specific steps:

1. click the wamp icon in the notification bar, find the php_curl option in php-ext, and click Select. wait until the wamp service is restarted.

2. download the repaired php_curl.dll (php5.X/X64 system) file and place it in the wampbinphpphp (version) ext folder.

3. restart the wamp service.

Tip:After so long, it turns out that the php environment we installed is different from the system version. we 'd better select the number of php versions for the number of systems.

Article address:

Reprint at will ^ please include the address of this article!

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.