Php enables curl and openssl

Source: Internet
Author: User
Php enables curl and openssl. php enables curl and openssl.

To enable the php curl function library

1) remove the file in windows/php. ini; prefix extension = php_curl.dll;/* use echo phpinfo () to view the php. ini path */

2) copy php5/libeay32.dll and ssleay32.dll to the system directory windows/# if the php environment variable is not the php installation path, this operation is required for php. ini in the system's default c: \ windows.

3) restart apache or iis

========================================================== ======================================

Configure php to support curl

Curl is a file transfer tool that uses the URL syntax to work in the command line mode. It supports many protocols: FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE, and LDAP. Curl also supports HTTPS authentication, http post, http put, FTP upload, kerberos authentication, HTTP upload, proxy server, cookies, user name/password authentication, and resumable download of downloaded files, resumable Upload of uploaded files, the http proxy server pipeline (proxy tunneling), and even IPv6 and socks5 proxy servers, which upload files to the FTP server through the http proxy server, are very powerful. Network ant in the Windows operating system, which can be achieved by the flash get function. To be accurate, curl supports file upload and download. Therefore, curl is a comprehensive transmission tool. However, users often call curl a download tool.

※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※

Php_curl.dll has been built in. in the ext Directory, this DLL is used to support SSL and zlib.

In php. ini, find extension = php_curl.dll and remove the preceding comment.

Set extension_dir = c: phpext. when the PHP page is refreshed, an error is reported, indicating that the module php_curl.dll cannot be found.

Copy php_curl.dll to windowssystem32.

After searching for it online, you need:

Libeay32.dll, ssleay32.dll, php5ts. dll, php_curl.dll

Copy all to the system32 directory and restart IIS.

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.