Php curl does not support solution _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
Curl in php does not support solutions. In php, if you configure and install functions, the curl series functions are generally not supported by default. if you want your php environment to support the curl function, you can refer to the following methods to solve the problem. In php, if you configure and install the curl series functions, the curl series functions are not supported by default. if you want your php environment to support the curl function, we can refer to the following method to solve the problem.

Modify your php configuration and remove the semicolon from; extension = php_curl.dll in php. ini;


Restart apache to test whether it works. generally, it is okay. if it still doesn't work, we can

1. set the three files in the PHP folder

Php_curl.dll,

Libeay32.dll,

Ssleay32.dll

Copy to system32;


3. restart apache.

Test

The code is as follows:

$ Ch = curl_init ();
Curl_setopt ($ ch, CURLOPT_URL, "http://www.bKjia. c0m ");
Curl_setopt ($ ch, CURLOPT_HEADER, 1 );
Curl_exec ($ ch );
Curl_close ($ ch );
?>

In this way, it is successful.

Bytes. MODIFY...

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.