PHP opens Curl and OpenSSL

Source: Internet
Author: User
Tags http post

PHP opens Curl and OpenSSL

To open the PHP Curl Library

1). Remove the Windows/php.ini file; Extension=php_curl.dll Front; /* with Echo phpinfo (); View PHP.ini's Path */

2). Copy the Php5/libeay32.dll,ssleay32.dll to the system directory windows/#如果php环境变量不是php安装路径, php.ini This action is required under system default C:\Windows

3). Restart Apache or IIS

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

Configure PHP to support curl

Curl is a file transfer tool that works with URL syntax 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 method, HTTP put method, FTP upload, Kerberos authentication, HTTP upload, proxy server, cookies, username/password Authentication, download file breakpoint continuation, upload file breakpoint continuation, HTTP Proxy service (proxy tunneling), even it supports IPV6, SOCKS5 proxy server, uploading files via HTTP proxy server to FTP server and so on, the function is very powerful. Windows operating system under the network ant, the Internet Express (FlashGet) function it can do. To be exact, curl supports file uploads and downloads, so it's a comprehensive transfer tool, but traditionally, users are accustomed to calling curl a download tool.

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

The Php_curl.dll is already built in, and in the EXT directory, this DLL is used to support SSL and zlib.

Find the Extension=php_curl.dll in php.ini and remove the previous comment.

Set Extension_dir=c:phpext, refresh php page times wrong, said to find module Php_curl.dll.

Copy Php_curl.dll to Windowssystem32, or the same mistake.

On the internet to find a bit, you need to:

Libeay32.dll, Ssleay32.dll, Php5ts.dll, Php_curl.dll

are copied to the System32 directory, restart IIS.

PHP opens Curl and OpenSSL

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.