The undefined function curl_init () error occurs when php runs curl in Windows 7.

Source: Internet
Author: User
Tags curl

Cause analysis

The Undefined function curl_init () error is not loaded, because the PHP curl function is required to load the Php_curl.dll module in the php.ini, so the reason knows we can not start operation.

Check:

1. Function_exists (), whether the curl has been supported

2. Whether the Php_curl.dll exists in the Php/ext catalogue;

3. PHP installation directory, Libeay32.dll and Ssleay32.dll is there!

Modify Configuration:

1. Modify the php.ini to remove the semicolon before the Extension=php_curl.dll.

If it's still not working, we could be a problem with the environment variable. You can copy it to a Windows folder.

2, the PHP directory in the Php_curl.dll copy to C:/windows/system32 and c:/windows/syswow64 two folders inside a try, this method is generally more useful.

Note: Libeay32.dll and Ssleay32.dll php_curl.dll three files are found in ext in your PHP installation directory.

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.